]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-8588 fix deadlock in error condition
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 1 Dec 2015 19:54:20 +0000 (13:54 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 1 Dec 2015 19:54:20 +0000 (13:54 -0600)
src/switch_ivr_async.c

index 595ca3517b0666c33a238b48778f3b3a78caff6e..456defaa3e340e2d0c80486ea3d42306a4471603 100644 (file)
@@ -618,6 +618,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_dmachine_feed(switch_ivr_dmachine_t *
                                status = istatus;
                        }
                } else {
+                       switch_mutex_unlock(dmachine->mutex);
                        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "dmachine overflow error!\n");
                        status = SWITCH_STATUS_FALSE;
                }