mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-31 09:02:41 +01:00
Fixed potential bug in process exit handling
- Process.Exited can be called multiple times in certain circumstances.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user