misc fix
This commit is contained in:
parent
92d713d188
commit
770785e979
@ -589,13 +589,11 @@ namespace IW4MAdmin.Application
|
||||
|
||||
public async Task Stop()
|
||||
{
|
||||
_tokenSource.Cancel();
|
||||
|
||||
foreach (var plugin in Plugins)
|
||||
{
|
||||
try
|
||||
{
|
||||
await plugin.OnUnloadAsync();
|
||||
await plugin.OnUnloadAsync().WithTimeout(Utilities.DefaultCommandTimeout);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
@ -603,6 +601,8 @@ namespace IW4MAdmin.Application
|
||||
}
|
||||
}
|
||||
|
||||
_tokenSource.Cancel();
|
||||
|
||||
IsRunning = false;
|
||||
}
|
||||
|
||||
|
@ -97,6 +97,7 @@ namespace IW4MAdmin
|
||||
client.Score = clientFromLog.Score;
|
||||
client.Ping = clientFromLog.Ping;
|
||||
client.Team = clientFromLog.Team;
|
||||
client.TeamName = clientFromLog.TeamName;
|
||||
client.CurrentServer = this;
|
||||
client.State = ClientState.Connecting;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user