do not respawn inactive players
This commit is contained in:
parent
cd12ab7bde
commit
abad2c95c8
11 changed files with 91 additions and 48 deletions
|
@ -47,6 +47,7 @@ internal abstract class WebsocketServer<T>(
|
|||
await AddConnectionAsync(connection);
|
||||
await connection.ReceiveAsync();
|
||||
await RemoveConnectionAsync(connection);
|
||||
await connection.RemovedAsync();
|
||||
}
|
||||
|
||||
private async ValueTask LockedAsync(Func<ValueTask> action, CancellationToken cancellationToken)
|
||||
|
@ -62,7 +63,7 @@ internal abstract class WebsocketServer<T>(
|
|||
}
|
||||
}
|
||||
|
||||
public void Dispose() => _mutex.Dispose();
|
||||
public virtual void Dispose() => _mutex.Dispose();
|
||||
|
||||
public Task StartAsync(CancellationToken cancellationToken) => Task.CompletedTask;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue