feat: disconnect all on stop.
This commit is contained in:
parent
6589a9f890
commit
b3941d2672
1 changed files with 1 additions and 0 deletions
|
@ -27,6 +27,7 @@ public class WonderkingAuthServer : TcpServer, IHostedService
|
||||||
|
|
||||||
public Task StopAsync(CancellationToken cancellationToken)
|
public Task StopAsync(CancellationToken cancellationToken)
|
||||||
{
|
{
|
||||||
|
this.DisconnectAll();
|
||||||
this.Stop();
|
this.Stop();
|
||||||
return Task.CompletedTask;
|
return Task.CompletedTask;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue