Skip to content

Commit

Permalink
Bugfixes due to updated server code.
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCrankLarson committed Aug 21, 2020
1 parent 747c914 commit 0eda70f
Show file tree
Hide file tree
Showing 4 changed files with 200 additions and 178 deletions.
14 changes: 11 additions & 3 deletions DataCollator/NotificationServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,17 @@ public int Port

private void UpdateCommanderStatus(string status)
{
EDEvent updateEvent = EDEvent.FromJson(status);
if (String.IsNullOrEmpty(updateEvent.Commander))
return;
EDEvent updateEvent = null;
try
{
updateEvent = EDEvent.FromJson(status);
if (String.IsNullOrEmpty(updateEvent.Commander))
return;
}
catch (Exception ex)
{
Log($"Error creating event: {ex.Message}");
}

if (_races.Count > 0)
Task.Run(new Action(() =>
Expand Down

0 comments on commit 0eda70f

Please sign in to comment.