diff --git a/apps/app_chanspy.c b/apps/app_chanspy.c index 80af5b234b..aba4c3a52a 100644 --- a/apps/app_chanspy.c +++ b/apps/app_chanspy.c @@ -674,6 +674,8 @@ static int common_exec(struct ast_channel *chan, const struct ast_flags *flags, ast_channel_setoption(chan, AST_OPTION_TXGAIN, &zero_volume, sizeof(zero_volume), 0); + ast_mutex_lock(&chanspy_ds.lock); + ast_mutex_unlock(&chanspy_ds.lock); ast_mutex_destroy(&chanspy_ds.lock); return res;