1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-06 00:13:33 +00:00

Fixed win-systray cleanup, so if you call remove without exiting/dumping, it disconnects the IPC.

This commit is contained in:
Bryan Roe
2020-07-31 00:38:04 -07:00
parent 7a265a37b9
commit 1e5b1afb9a
2 changed files with 6 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@@ -59,7 +59,11 @@ function localsystem_createTrayIcon(trayOptions)
}
}
});
this.ret._cleanup = function _cleanup() { _cleanup.ret._dispatcher.invoke('remove', [_cleanup.ret.tid]); };
this.ret._cleanup = function _cleanup()
{
_cleanup.ret._dispatcher.invoke('remove', [_cleanup.ret.tid]);
_cleanup.ret.connection.end();
};
this.ret._cleanup.ret = this.ret;
process.on('exit', this.ret._cleanup);
});