mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-11-04 04:04:20 +00:00 
			
		
		
		
	Avoid stop loops
This commit is contained in:
		@@ -29,6 +29,11 @@ ComunicWeb.components.calls.callWindow = {
 | 
			
		||||
			 */
 | 
			
		||||
			open: true,
 | 
			
		||||
 | 
			
		||||
			/**
 | 
			
		||||
			 * @type {Boolean}
 | 
			
		||||
			 */
 | 
			
		||||
			stopped: false,
 | 
			
		||||
 | 
			
		||||
			window: {},
 | 
			
		||||
			streams: {},
 | 
			
		||||
 | 
			
		||||
@@ -190,7 +195,13 @@ ComunicWeb.components.calls.callWindow = {
 | 
			
		||||
 | 
			
		||||
		//Make close button lives
 | 
			
		||||
		call.close = function(){
 | 
			
		||||
 | 
			
		||||
			//Avoid to call this several times
 | 
			
		||||
			if(call.stopped)
 | 
			
		||||
				return;
 | 
			
		||||
 | 
			
		||||
			call.open = false;
 | 
			
		||||
			call.stopped = true;
 | 
			
		||||
			callContainer.remove();
 | 
			
		||||
 | 
			
		||||
			//Close sockets connections too
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user