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;
|
||||
child.close();
|
||||
})
|
||||
child.on("close", (e) => {
|
||||
lock = false;
|
||||
})
|
||||
// Blocks requests to ArmCord's WS, to prevent loops.
|
||||
child.webContents.session.webRequest.onBeforeRequest({
|
||||
urls: ['ws://127.0.0.1:'+wsPort.toString()+'/*']
|
||||
|
|
Loading…
Reference in a new issue