 
 		peerConnection = @getPeerConnection data.from
 
-		needsRefresh = false
-		if peerConnection.iceConnectionState isnt 'new'
-			needsAudio = data.media.audio is true and peerConnection.remoteMedia.audio isnt true
-			needsVideo = data.media.video is true and peerConnection.remoteMedia.video isnt true
-			needsRefresh = needsAudio or needsVideo or data.media.desktop isnt peerConnection.remoteMedia.desktop
-
-		if peerConnection.signalingState is "have-local-offer" or needsRefresh
+		# needsRefresh = false
+		# if peerConnection.iceConnectionState isnt 'new'
+		# 	needsAudio = data.media.audio is true and peerConnection.remoteMedia.audio isnt true
+		# 	needsVideo = data.media.video is true and peerConnection.remoteMedia.video isnt true
+		# 	needsRefresh = needsAudio or needsVideo or data.media.desktop isnt peerConnection.remoteMedia.desktop
+
+		# if peerConnection.signalingState is "have-local-offer" or needsRefresh
+		if peerConnection.signalingState isnt "checking"
 			@stopPeerConnection data.from
 			peerConnection = @getPeerConnection data.from
 

			{urls: "turn:numb.viagenie.ca:3478", username: "team@rocket.chat", credential: "demo"}
		]

	debug: true

	transportClass: WebRTCTransportClass


			from {String}
			type {String} [offer, answer]
			description {RTCSessionDescription JSON encoded}
			ts {Integer}
			media {Object}
				audio {Boolean}
				video {Boolean}
