[Freeswitch-svn] [commit] r10074 - freeswitch/trunk/src/mod/event_handlers/mod_event_socket

Freeswitch SVN mikej at freeswitch.org
Sun Oct 19 20:32:21 EDT 2008


Author: mikej
Date: Sun Oct 19 20:32:21 2008
New Revision: 10074

Modified:
   freeswitch/trunk/src/mod/event_handlers/mod_event_socket/mod_event_socket.c

Log:
don't send disconnect on every reply.

Modified: freeswitch/trunk/src/mod/event_handlers/mod_event_socket/mod_event_socket.c
==============================================================================
--- freeswitch/trunk/src/mod/event_handlers/mod_event_socket/mod_event_socket.c	(original)
+++ freeswitch/trunk/src/mod/event_handlers/mod_event_socket/mod_event_socket.c	Sun Oct 19 20:32:21 2008
@@ -619,7 +619,7 @@
 		}
 	}
 
-	if (listener->sock) {
+	if (listener->sock && listener->hup) {
 		char content_buf[512] = "";
 		const char message[] = "Disconnected, goodbye!\nSee you at ClueCon http://www.cluecon.com!\n";
 		int message_len = strlen(message);



More information about the Freeswitch-svn mailing list