1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-10 21:33:38 +00:00

Fixed Windows KVM bug, where the kvm process restarts when the parent disconnects

This commit is contained in:
Bryan Roe
2019-09-17 09:41:45 -07:00
parent 7f228d78fb
commit 29ee49e7d8

View File

@@ -980,7 +980,7 @@ void kvm_relay_ExitHandler(ILibProcessPipe_Process sender, int exitCode, void* u
UNREFERENCED_PARAMETER(exitCode);
UNREFERENCED_PARAMETER(sender);
if (g_restartcount < 4)
if (g_restartcount < 4 && g_shutdown == 0)
{
kvm_relay_restart(1, pipeMgr, exePath, writeHandler, reserved);
}