deduplicate connection logic
This commit is contained in:
parent
f477d1e5de
commit
fa8a723ff9
9 changed files with 108 additions and 113 deletions
|
@ -37,7 +37,7 @@ internal abstract class WebsocketServer<T>(
|
|||
await connection.ReceiveAsync();
|
||||
|
||||
_ = _connections.TryRemove(connection, out _);
|
||||
await connection.RemovedAsync();
|
||||
connection.Dispose();
|
||||
}
|
||||
|
||||
public Task StartAsync(CancellationToken cancellationToken) => Task.CompletedTask;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue