Skinny: avoid crash on shutdown

Because of uninstancied listener
This commit is contained in:
Mathieu Parent 2010-04-08 22:48:36 +02:00
parent 58595bdaec
commit ca8ec66ed3
1 changed files with 3 additions and 0 deletions

View File

@ -1236,6 +1236,9 @@ static void *SWITCH_THREAD_FUNC listener_run(switch_thread_t *thread, void *obj)
switch_clear_flag_locked(listener, LFLAG_RUNNING);
break;
}
if (!listener_is_ready(listener)) {
break;
}
if (!request) {
continue;