Revision
17255
Author
math.parent
Date
2010-04-08 15:48:36 -0500 (Thu, 08 Apr 2010)

Log Message

Skinny: avoid crash on shutdown

Because of uninstancied listener

Modified Paths

Diff

Modified: freeswitch/trunk/src/mod/endpoints/mod_skinny/mod_skinny.c (17254 => 17255)


--- freeswitch/trunk/src/mod/endpoints/mod_skinny/mod_skinny.c	2010-04-08 20:38:24 UTC (rev 17254)
+++ freeswitch/trunk/src/mod/endpoints/mod_skinny/mod_skinny.c	2010-04-08 20:48:36 UTC (rev 17255)
@@ -1236,6 +1236,9 @@
 			switch_clear_flag_locked(listener, LFLAG_RUNNING);
 			break;
 		}
+		if (!listener_is_ready(listener)) {
+			break;
+		}
 
 		if (!request) {
 			continue;