fix possible race condition

git.mgm/mediaproxy-ng/2.0
Richard Fuchs 13 years ago
parent 7f0948544a
commit 1efd8ebbed

@ -1293,7 +1293,7 @@ got_cs:
/* nothing found to steal and this end is used */
/* need a new call stream after all */
DBG("case 4");
if (cs_o)
if (cs_o && cs_o != cs)
mutex_unlock(&cs_o->lock);
cs_o = cs;
cs = callstream_new(c, t->num);

Loading…
Cancel
Save