misc fix
This commit is contained in:
parent
92d713d188
commit
770785e979
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user