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:
File diff suppressed because one or more lines are too long
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user