]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Skinny: avoid crash on shutdown
authorMathieu Parent <math.parent@gmail.com>
Thu, 8 Apr 2010 20:48:36 +0000 (22:48 +0200)
committerMathieu Parent <math.parent@gmail.com>
Thu, 8 Apr 2010 20:48:36 +0000 (22:48 +0200)
Because of uninstancied listener

src/mod/endpoints/mod_skinny/mod_skinny.c

index e7476b53d597f534dbd7f0d314731c12c6857126..56f2b5ed0ecb86560270243cdeaacf864bca576a 100644 (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;