Skip to content

Commit

Permalink
My bad
Browse files Browse the repository at this point in the history
  • Loading branch information
geoperez committed Apr 19, 2019
1 parent 2607ecb commit 198a364
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Unosquare.Labs.EmbedIO/Modules/WebSocketsServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -280,11 +280,12 @@ protected virtual void Dispose(bool disposeAll)
{
// We only have managed resources here.
// if called with false, return.
if (disposeAll == false) return;
if (!disposeAll) return;

lock (_syncRoot)
{
_mWebSockets.ForEach(Close);
foreach (var socket in _mWebSockets.ToArray())
Close(socket);
}

CollectDisconnected();
Expand Down

0 comments on commit 198a364

Please sign in to comment.