mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-13 12:37:07 +00:00
fix: use correct collection for program stop
This commit is contained in:
parent
608601990b
commit
6cb98e12fa
1 changed files with 3 additions and 3 deletions
|
|
@ -861,11 +861,11 @@ namespace PepperDash.Essentials.WebSocketServer
|
||||||
{
|
{
|
||||||
if (programEventType == eProgramStatusEventType.Stopping)
|
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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue