mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 04:51:31 +08:00 
			
		
		
		
	handle ERR_CONNECTION_RESET gracefully
This commit is contained in:
		
							parent
							
								
									04813743e2
								
							
						
					
					
						commit
						a3fa8341ba
					
				| @ -60,6 +60,7 @@ async function sync() { | |||||||
|                 (e.message.includes('ECONNREFUSED') || |                 (e.message.includes('ECONNREFUSED') || | ||||||
|                  e.message.includes('ERR_CONNECTION_REFUSED') || |                  e.message.includes('ERR_CONNECTION_REFUSED') || | ||||||
|                  e.message.includes('ERR_ADDRESS_UNREACHABLE') || |                  e.message.includes('ERR_ADDRESS_UNREACHABLE') || | ||||||
|  |                  e.message.includes('ERR_CONNECTION_RESET') || | ||||||
|                  e.message.includes('Bad Gateway'))) { |                  e.message.includes('Bad Gateway'))) { | ||||||
| 
 | 
 | ||||||
|             ws.syncFailed(); |             ws.syncFailed(); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 zadam
						zadam