mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-01-11 19:44:52 +00:00
fix: use correct collection for program stop
This commit is contained in:
@@ -861,11 +861,11 @@ namespace PepperDash.Essentials.WebSocketServer
|
||||
{
|
||||
if (programEventType == eProgramStatusEventType.Stopping)
|
||||
{
|
||||
foreach (var client in UiClientContexts.Values)
|
||||
foreach (var client in UiClients.Values)
|
||||
{
|
||||
if (client.Client != null && client.Client.Context.WebSocket.IsAlive)
|
||||
if (client != null && client.Context.WebSocket.IsAlive)
|
||||
{
|
||||
client.Client.Context.WebSocket.Close(CloseStatusCode.Normal, "Server Shutting Down");
|
||||
client.Context.WebSocket.Close(CloseStatusCode.Normal, "Server Shutting Down");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user