Fixed potential bug in process exit handling

- Process.Exited can be called multiple times in certain circumstances.
This commit is contained in:
Jordan Brown
2020-04-24 21:44:45 -04:00
parent b3151d908a
commit c418b37e5d
@@ -39,8 +39,10 @@ namespace Tgstation.Server.Host.System
return;
}
tcs.SetResult(exitCode);
// Try because this can be invoked twice for weird reasons
tcs.TrySetResult(exitCode);
};
return tcs.Task;
}