mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
Fix BaseServer.Shutdown bug when not specifying a reason.
If a shutdown was requested before the main loop had been started, it would only work if the reason was non-null. This is because `string? _shutdownReason` essentially acts as a shutdown request flag with its nullability.
This commit is contained in:
@@ -126,7 +126,7 @@ namespace Robust.Server
|
||||
else
|
||||
Logger.InfoS("srv", $"{reason}, shutting down...");
|
||||
|
||||
_shutdownReason = reason;
|
||||
_shutdownReason = reason ?? "Shutting down";
|
||||
|
||||
if (_mainLoop != null) _mainLoop.Running = false;
|
||||
if (_logHandler != null)
|
||||
|
||||
Reference in New Issue
Block a user