This commit is contained in:
RaidMax 2022-03-28 16:05:00 -05:00
parent 92d713d188
commit 770785e979
2 changed files with 4 additions and 3 deletions

View File

@ -589,13 +589,11 @@ namespace IW4MAdmin.Application
public async Task Stop() public async Task Stop()
{ {
_tokenSource.Cancel();
foreach (var plugin in Plugins) foreach (var plugin in Plugins)
{ {
try try
{ {
await plugin.OnUnloadAsync(); await plugin.OnUnloadAsync().WithTimeout(Utilities.DefaultCommandTimeout);
} }
catch (Exception ex) catch (Exception ex)
{ {
@ -603,6 +601,8 @@ namespace IW4MAdmin.Application
} }
} }
_tokenSource.Cancel();
IsRunning = false; IsRunning = false;
} }

View File

@ -97,6 +97,7 @@ namespace IW4MAdmin
client.Score = clientFromLog.Score; client.Score = clientFromLog.Score;
client.Ping = clientFromLog.Ping; client.Ping = clientFromLog.Ping;
client.Team = clientFromLog.Team; client.Team = clientFromLog.Team;
client.TeamName = clientFromLog.TeamName;
client.CurrentServer = this; client.CurrentServer = this;
client.State = ClientState.Connecting; client.State = ClientState.Connecting;