| 
					
				 | 
			
			
				@@ -273,8 +273,12 @@ class RTCPeer extends Peer { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (message.sdp) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this._conn.setRemoteDescription(new RTCSessionDescription(message.sdp)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                .then( _ => this._conn.createAnswer()) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                .then(d => this._onDescription(d)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                .then( _ => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    if (message.sdp.type === 'offer') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        return this._conn.createAnswer() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            .then(d => this._onDescription(d)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 .catch(e => this._onError(e)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } else if (message.ice) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this._conn.addIceCandidate(new RTCIceCandidate(message.ice)); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -510,4 +514,4 @@ RTCPeer.config = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         credential: 'JZEOEt2V3Qb0y27GRntt2u2PAYA=', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         username: '28224511:1379330808' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+} 
			 |