mirror of
				https://git.coolaj86.com/coolaj86/telebit.js.git
				synced 2025-11-04 02:32:47 +00:00 
			
		
		
		
	retry after bad network conn
This commit is contained in:
		
							parent
							
								
									b9fae99ddc
								
							
						
					
					
						commit
						82763460ef
					
				@ -484,6 +484,11 @@ function _connect(state) {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  , onError: function (err) {
 | 
					  , onError: function (err) {
 | 
				
			||||||
 | 
					      if ('ENOTFOUND' === err.code) {
 | 
				
			||||||
 | 
					        // DNS issue, probably network is disconnected
 | 
				
			||||||
 | 
					        timeoutId = setTimeout(connect, 90 * 1000);
 | 
				
			||||||
 | 
					        return;
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
      console.error("[tunnel error] " + err.message);
 | 
					      console.error("[tunnel error] " + err.message);
 | 
				
			||||||
      console.error(err);
 | 
					      console.error(err);
 | 
				
			||||||
      if (connCallback) {
 | 
					      if (connCallback) {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user