mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-17 14:58:34 +00:00
skypopen: making XEvents to works when EARLYMEDIA, and correctly manage threads death
This commit is contained in:
1 parent
d46a1ca701
commit
aaae4c652d
2 files changed
+7
-1
No files matched your search
@@ -1191,6 +1191,7 @@ static void *SWITCH_THREAD_FUNC skypopen_signaling_thread_func(switch_thread_t *
|
||||
}
|
||||
}
|
||||
}
|
||||
tech_pvt->skypopen_signaling_thread=NULL;
|
||||
DEBUGA_SKYPE("EXITING\n", SKYPOPEN_P_LOG);
|
||||
return NULL;
|
||||
}
|
||||
@@ -1703,6 +1704,8 @@ SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_skypopen_shutdown)
|
||||
switch_file_write(tech_pvt->SkypopenHandles.fdesc[1], "sciutati", &howmany); // let's the controldev_thread die
|
||||
|
||||
#else /* WIN32 */
|
||||
skypopen_signaling_write(tech_pvt, "DIE");
|
||||
switch_sleep(10000);
|
||||
howmany = write(tech_pvt->SkypopenHandles.fdesc[1], "sciutati", howmany);
|
||||
#endif /* WIN32 */
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user