Browse Source

dont poll kernel list when table couldnt be opened

git.mgm/mediaproxy-ng/2.1
Richard Fuchs 14 years ago
parent
commit
2594da3b45
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      daemon/call.c

+ 2
- 2
daemon/call.c View File

@ -108,7 +108,7 @@ void kernelize(struct callstream *c) {
struct kernel_stream ks;
struct callmaster *cm = c->call->callmaster;
if (cm->kernelfd < 0 || cm->kernelid < 0)
if (cm->kernelfd < 0 || cm->kernelid == -1)
return;
mylog(LOG_DEBUG, LOG_PREFIX_C "Kernelizing RTP streams", LOG_PARAMS_C(c->call));
@ -555,7 +555,7 @@ static void callmaster_timer(void *ptr) {
memcpy(&m->stats, &m->statsps, sizeof(m->stats));
ZERO(m->statsps);
i = kernel_list(m->kernelid);
i = (m->kernelid != -1) ? kernel_list(m->kernelid) : NULL;
while (i) {
ke = i->data;


Loading…
Cancel
Save