1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

fixed base controller Manager being null

fixed log reading duplicates with new event processing
added portuguese translation
This commit is contained in:
RaidMax
2018-04-26 15:26:03 -05:00
parent 82a20e999c
commit 8476112626
12 changed files with 263 additions and 37 deletions

View File

@ -366,7 +366,10 @@ namespace IW4MAdmin.Application
{
try
{
Task.WaitAll(newEvent.Owner.ExecuteEvent(newEvent));
newEvent.Owner.ExecuteEvent(newEvent).Wait();
#if DEBUG
Logger.WriteDebug("Processed Event");
#endif
}
catch (Exception E)
@ -374,6 +377,8 @@ namespace IW4MAdmin.Application
Logger.WriteError($"{Utilities.CurrentLocalization.LocalizationSet["SERVER_ERROR_EXCEPTION"]} {newEvent.Owner}");
Logger.WriteDebug("Error Message: " + E.Message);
Logger.WriteDebug("Error Trace: " + E.StackTrace);
newEvent.OnProcessed.Set();
continue;
}
// tell anyone waiting for the output that we're done
newEvent.OnProcessed.Set();