mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-25 04:34:15 +00:00
update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7625 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
1f3edc49dc
commit
10d8b26b89
1 file changed
+14
-5
@@ -248,13 +248,22 @@ SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_event_multicast_shutdown)
|
||||
{
|
||||
int x = 0;
|
||||
|
||||
switch_socket_shutdown(globals.udp_socket, SWITCH_SHUTDOWN_READWRITE);
|
||||
globals.running = -1;
|
||||
while (x < 100000 && globals.running) {
|
||||
x++;
|
||||
switch_yield(1000);
|
||||
if (globals.udp_socket) {
|
||||
switch_socket_shutdown(globals.udp_socket, SWITCH_SHUTDOWN_READWRITE);
|
||||
switch_socket_close(globals.udp_socket);
|
||||
globals.udp_socket = NULL;
|
||||
}
|
||||
|
||||
if (globals.running == 1) {
|
||||
globals.running = -1;
|
||||
while (x < 100000 && globals.running) {
|
||||
x++;
|
||||
switch_yield(1000);
|
||||
}
|
||||
}
|
||||
|
||||
switch_core_hash_destroy(&globals.event_hash);
|
||||
|
||||
return SWITCH_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user