mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-11-04 07:01:31 +08:00 
			
		
		
		
	attempt to fix the ws crash, #3374
This commit is contained in:
		
							parent
							
								
									0d06d5ccee
								
							
						
					
					
						commit
						128023d34e
					
				@ -53,6 +53,11 @@ function init(httpServer, sessionParser) {
 | 
				
			|||||||
            }
 | 
					            }
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    webSocketServer.on('error', error => {
 | 
				
			||||||
 | 
					        // https://github.com/zadam/trilium/issues/3374#issuecomment-1341053765
 | 
				
			||||||
 | 
					        console.log(error);
 | 
				
			||||||
 | 
					    });
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function sendMessage(client, message) {
 | 
					function sendMessage(client, message) {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user