mirror of
				https://github.com/smartfrigde/armcord.git
				synced 2024-08-14 23:56:58 +00:00 
			
		
		
		
	Fix websocket not unlocking when window is closed manually
This commit is contained in:
		
							parent
							
								
									eda6621989
								
							
						
					
					
						commit
						37966b985a
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		|  | @ -169,6 +169,9 @@ export default async function startServer() { | ||||||
|                     lock = false; |                     lock = false; | ||||||
|                     child.close(); |                     child.close(); | ||||||
|                 }) |                 }) | ||||||
|  |                 child.on("close", (e) => { | ||||||
|  |                     lock = false; | ||||||
|  |                 }) | ||||||
|                 // Blocks requests to ArmCord's WS, to prevent loops.
 |                 // Blocks requests to ArmCord's WS, to prevent loops.
 | ||||||
|                 child.webContents.session.webRequest.onBeforeRequest({ |                 child.webContents.session.webRequest.onBeforeRequest({ | ||||||
|                     urls: ['ws://127.0.0.1:'+wsPort.toString()+'/*'] |                     urls: ['ws://127.0.0.1:'+wsPort.toString()+'/*'] | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue