mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-10 07:13:58 -05:00
update map names for IW4 (issue #48)
only check shared GUID for IW4 optimized get privileged clients query fine-tuned the version printout to include revision numbers
This commit is contained in:
@ -18,23 +18,23 @@ namespace IW4MAdmin.Application
|
||||
{
|
||||
Manager = mgr;
|
||||
OutOfOrderEvents = new SortedList<long, GameEvent>();
|
||||
IsProcessingEvent = new SemaphoreSlim(2, 2);
|
||||
IsProcessingEvent = new SemaphoreSlim(1, 1);
|
||||
}
|
||||
|
||||
public void AddEvent(GameEvent gameEvent)
|
||||
{
|
||||
IsProcessingEvent.Wait();
|
||||
// IsProcessingEvent.Wait();
|
||||
((Manager as ApplicationManager).OnServerEvent)(this, new GameEventArgs(null, false, gameEvent));
|
||||
if (gameEvent.Type == GameEvent.EventType.Connect)
|
||||
{
|
||||
IsProcessingEvent.Wait();
|
||||
if (!gameEvent.OnProcessed.Wait(30 * 1000))
|
||||
{
|
||||
Manager.GetLogger().WriteError($"{Utilities.CurrentLocalization.LocalizationIndex["SERVER_ERROR_COMMAND_TIMEOUT"]} [{gameEvent.Id}, {gameEvent.Type}]");
|
||||
}
|
||||
IsProcessingEvent.Release(1);
|
||||
}
|
||||
IsProcessingEvent.Release(1);
|
||||
// IsProcessingEvent.Release(1);
|
||||
//if (gameEvent.Type == GameEvent.EventType.Connect)
|
||||
//{
|
||||
// IsProcessingEvent.Wait();
|
||||
// if (!gameEvent.OnProcessed.Wait(10 * 1000))
|
||||
// {
|
||||
// Manager.GetLogger().WriteError($"{Utilities.CurrentLocalization.LocalizationIndex["SERVER_ERROR_COMMAND_TIMEOUT"]} [{gameEvent.Id}, {gameEvent.Type}]");
|
||||
// }
|
||||
// IsProcessingEvent.Release(1);
|
||||
//}
|
||||
|
||||
return;
|
||||
#if DEBUG
|
||||
|
Reference in New Issue
Block a user