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 99390f1f35
commit b6c979beba
12 changed files with 263 additions and 37 deletions

View File

@ -22,7 +22,7 @@ namespace WebfrontCore.Controllers
public BaseController()
{
var Manager = Program.Manager;
Manager = Program.Manager;
if (Manager.GetApplicationSettings().Configuration().EnableDiscordLink)
{
string inviteLink = Manager.GetApplicationSettings().Configuration().DiscordInviteCode;

View File

@ -48,7 +48,7 @@ namespace WebfrontCore.Controllers
Manager.GetEventHandler().AddEvent(remoteEvent);
// wait for the event to process
remoteEvent.OnProcessed.Wait();
await Task.Run(() => remoteEvent.OnProcessed.Wait());
var response = server.CommandResult.Where(c => c.ClientId == client.ClientId).ToList();
// remove the added command response