From a7d40d293cd1c62292b5a6a4cf64b8dfa500f775 Mon Sep 17 00:00:00 2001 From: Ishan Karmakar Date: Mon, 1 Jun 2026 14:15:47 -0500 Subject: [PATCH] feat: Disconnect on app quit --- src/main.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.ts b/src/main.ts index aef77f4..49dd365 100644 --- a/src/main.ts +++ b/src/main.ts @@ -24,6 +24,8 @@ app.on('window-all-closed', () => { } }); +app.on('before-quit', disconnect); + app.on('activate', () => { // On OS X it's common to re-create a window in the app when the // dock icon is clicked and there are no other windows open.