Browse Source

fix possible race condition

git.mgm/mediaproxy-ng/2.1
Richard Fuchs 13 years ago
parent
commit
3a26e9fceb
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      daemon/call.c

+ 1
- 1
daemon/call.c View File

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


Loading…
Cancel
Save