File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -168,6 +168,17 @@ app.on('before-quit', () => {
168168 if ( httpServer ) {
169169 httpServer . close ( ) ;
170170 }
171+ if ( wsServer ) {
172+ // Close all WebSocket client connections
173+ wsClients . forEach ( client => {
174+ if ( client . readyState === WebSocket . OPEN ) {
175+ client . close ( ) ;
176+ }
177+ } ) ;
178+ wsClients . clear ( ) ;
179+ // Close the WebSocket server
180+ wsServer . close ( ) ;
181+ }
171182} ) ;
172183
173184process . on ( 'SIGINT' , ( ) => {
Original file line number Diff line number Diff line change 44 "description" : " Gateway for connecting WSJT-* and FLRig to Wavelog" ,
55 "keywords" : [],
66 "main" : " ./main.js" ,
7- "version" : " 1.1.11 " ,
7+ "version" : " 1.1.12 " ,
88 "author" : " DJ7NT" ,
99 "scripts" : {
1010 "start" : " electron-forge start" ,
You can’t perform that action at this time.
0 commit comments