[Pkg-voip-commits] [janus] 150/282: Check that icectx is not NULL before invoking g_main_context_wakeup.

Jonas Smedegaard dr at jones.dk
Wed Dec 20 21:53:36 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 b8fd04cbf5c8f5e50473f8e50ce944ef92e40f30
Author: Alessandro Toppi <atoppi at meetecho.com>
Date:   Tue Oct 24 17:06:02 2017 +0200

    Check that icectx is not NULL before invoking g_main_context_wakeup.
---
 ice.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/ice.c b/ice.c
index e47933a..c8e2a57 100644
--- a/ice.c
+++ b/ice.c
@@ -1227,7 +1227,9 @@ void janus_ice_webrtc_hangup(janus_ice_handle *handle, const char *reason) {
 			if(handle->iceloop != NULL && g_main_loop_is_running(handle->iceloop)) {
 				JANUS_LOG(LOG_VERB, "[%"SCNu64"] Forcing ICE loop to quit (%s)\n", handle->handle_id, g_main_loop_is_running(handle->iceloop) ? "running" : "NOT running");
 				g_main_loop_quit(handle->iceloop);
-				g_main_context_wakeup(handle->icectx);
+				if (handle->icectx != NULL) {
+					g_main_context_wakeup(handle->icectx);
+				}
 			}
 		}
 	}
@@ -3417,7 +3419,9 @@ void *janus_ice_send_thread(void *data) {
 			}
 			if(handle->iceloop != NULL && g_main_loop_is_running(handle->iceloop)) {
 				g_main_loop_quit(handle->iceloop);
-				g_main_context_wakeup(handle->icectx);
+				if (handle->icectx != NULL) {
+					g_main_context_wakeup(handle->icectx);
+				}
 			}
 			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