mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-30 00:22:40 +01:00
Fix NullReferenceException
This commit is contained in:
@@ -434,6 +434,11 @@ namespace Tgstation.Server.Host.Components.Watchdog
|
||||
var notification = new EventNotification(eventType, parameters);
|
||||
|
||||
var activeServer = GetActiveController();
|
||||
|
||||
// Server may have ended
|
||||
if (activeServer == null)
|
||||
return true;
|
||||
|
||||
result = await activeServer.SendCommand(
|
||||
new TopicParameters(notification),
|
||||
cancellationToken)
|
||||
|
||||
Reference in New Issue
Block a user