[Pkg-voip-commits] [janus] 240/282: Make sure an alert trigger is only enqueued if the send thread exists (see #1083)

Jonas Smedegaard dr at jones.dk
Wed Dec 20 21:53:45 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 bae1d8bd0635e1fb5969f9235051604bde5b478e
Author: Lorenzo Miniero <lminiero at gmail.com>
Date:   Fri Dec 1 18:32:03 2017 +0100

    Make sure an alert trigger is only enqueued if the send thread exists (see #1083)
---
 ice.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ice.c b/ice.c
index caadc85..7e0f8a0 100644
--- a/ice.c
+++ b/ice.c
@@ -1239,7 +1239,7 @@ void janus_ice_webrtc_hangup(janus_ice_handle *handle, const char *reason) {
 		/* user will be notified only after the actual hangup */
 		handle->hangup_reason = reason;
 	}
-	if(handle->queued_packets != NULL)
+	if(handle->queued_packets != NULL && handle->send_thread_created)
 #if GLIB_CHECK_VERSION(2, 46, 0)
 		g_async_queue_push_front(handle->queued_packets, &janus_ice_dtls_alert);
 #else

-- 
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