mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-22 12:37:24 +01:00
Fix potential NullReferenceException when disabling a user
This commit is contained in:
@@ -147,8 +147,9 @@ namespace Tgstation.Server.Host.Utils.SignalR
|
||||
return old;
|
||||
});
|
||||
|
||||
foreach (var context in connections!)
|
||||
context.Abort();
|
||||
if (connections != null)
|
||||
foreach (var context in connections)
|
||||
context.Abort();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user