Fix NullReferenceException

This commit is contained in:
Jordan Brown
2020-05-06 10:43:50 -04:00
parent 1a103e5f62
commit 458ec71f2e
@@ -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)