Skip to content

Commit 0ce5a91

Browse files
committed
change transport log remove sequnce
1 parent d3250d8 commit 0ce5a91

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/main/ipc/uds.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -720,10 +720,7 @@ export function globalStop(emit = false) {
720720
value.socket.close()
721721
})
722722
timerMap.clear()
723-
for (const t of exTransportList) {
724-
removeTransport(t)
725-
}
726-
exTransportList.splice(0, exTransportList.length)
723+
727724
//testMap
728725
testMap.forEach((value) => {
729726
value.close()
@@ -772,6 +769,11 @@ export function globalStop(emit = false) {
772769
})
773770
ortiMap.clear()
774771

772+
for (const t of exTransportList) {
773+
removeTransport(t)
774+
}
775+
exTransportList.splice(0, exTransportList.length)
776+
775777
if (emit) {
776778
BrowserWindow.getAllWindows().forEach((win) => {
777779
win.webContents.send('ipc-global-stop')

0 commit comments

Comments
 (0)