voice: activate next request is the active one is cancelled.
authorKrisztian Litkey <krisztian.litkey@intel.com>
Tue, 11 Mar 2014 12:54:11 +0000 (14:54 +0200)
committerKrisztian Litkey <krisztian.litkey@intel.com>
Tue, 11 Mar 2014 12:54:11 +0000 (14:54 +0200)
src/daemon/voice.c

index b26e270..5622500 100644 (file)
@@ -830,6 +830,11 @@ void srs_cancel_voice(srs_context_t *srs, uint32_t rid, int notify)
 
     mrp_list_delete(&req->hook);
     mrp_free(req);
+
+    if (state->active == req) {
+        state->active = NULL;
+        activate_next(state);
+    }
 }