[Pkg-voip-commits] [janus] 111/282: Remove sleep in janus_ice_thread after loop unlocking.

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 6aae7e364a7f10082b733eaebc3e50844b22ec87
Author: Alessandro Toppi <atoppi at meetecho.com>
Date:   Wed Sep 27 13:24:05 2017 +0200

    Remove sleep in janus_ice_thread after loop unlocking.
---
 ice.c | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/ice.c b/ice.c
index 5dd9f5b..9d8cd22 100644
--- a/ice.c
+++ b/ice.c
@@ -2426,15 +2426,11 @@ void *janus_ice_thread(void *data) {
 	janus_flags_set(&handle->webrtc_flags, JANUS_ICE_HANDLE_WEBRTC_CLEANING);
 	if(handle->cdone == 0)
 		handle->cdone = -1;
-	JANUS_LOG(LOG_VERB, "[%"SCNu64"] ICE thread ended!\n", handle->handle_id);
-	/* This handle has been destroyed, wait a bit and then free all the resources */
-	g_usleep (1*G_USEC_PER_SEC);
-	if(janus_flags_is_set(&handle->webrtc_flags, JANUS_ICE_HANDLE_WEBRTC_STOP)) {
-		//~ janus_ice_free(handle);
-	} else {
+	if(!janus_flags_is_set(&handle->webrtc_flags, JANUS_ICE_HANDLE_WEBRTC_STOP)) {
 		janus_ice_webrtc_free(handle);
 	}
 	g_thread_unref(g_thread_self());
+	JANUS_LOG(LOG_VERB, "[%"SCNu64"] ICE thread ended!\n", handle->handle_id);
 	return NULL;
 }
 

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