suppressing log when trying to send on closing websocket
This commit is contained in:
		
							parent
							
								
									7a9d06e67b
								
							
						
					
					
						commit
						5a3fe4468a
					
				| @ -239,10 +239,14 @@ function run(copts) { | |||||||
|         try { |         try { | ||||||
|           wstunneler.send(msg, {binary: true}); |           wstunneler.send(msg, {binary: true}); | ||||||
|         } catch (err) { |         } catch (err) { | ||||||
|  |           // There is a chance that this occurred after the websocket was told to close
 | ||||||
|  |           // and before it finished, in which case we don't need to log the error.
 | ||||||
|  |           if (wstunneler.readyState !== wstunneler.CLOSING) { | ||||||
|             console.warn('[sendMessage] error sending websocket message', err); |             console.warn('[sendMessage] error sending websocket message', err); | ||||||
|           } |           } | ||||||
|         } |         } | ||||||
|       } |       } | ||||||
|  |     } | ||||||
|   }; |   }; | ||||||
| 
 | 
 | ||||||
|   function connect() { |   function connect() { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user