[Pkg-voip-commits] [janus] 118/282: Quit the main loop in janus_ice_handles_check in case the loop is still running.
Jonas Smedegaard
dr at jones.dk
Wed Dec 20 21:53:33 UTC 2017
This is an automated email from the git hooks/post-receive script.
js pushed a commit to annotated tag debian/0.2.6-1
in repository janus.
commit a4710b4cac313d0a6eafa14e127e5d1c88907889
Author: Alessandro Toppi <atoppi at meetecho.com>
Date: Fri Oct 6 15:25:08 2017 +0200
Quit the main loop in janus_ice_handles_check in case the loop is still running.
---
ice.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/ice.c b/ice.c
index 610acbe..b9b845e 100644
--- a/ice.c
+++ b/ice.c
@@ -444,9 +444,12 @@ static gboolean janus_ice_handles_check(gpointer user_data) {
if (!handle) {
continue;
}
+ /* Be sure that iceloop is not running, before freeing */
if(handle->iceloop != NULL && g_main_loop_is_running(handle->iceloop)) {
+ g_main_loop_quit(handle->iceloop);
continue;
}
+ /* Be sure that icethread has finished, before freeing*/
if(handle->icethread != NULL) {
continue;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/janus.git
More information about the Pkg-voip-commits
mailing list