Skip to content

Commit

Permalink
Fix #1977
Browse files Browse the repository at this point in the history
  • Loading branch information
Tkael committed Oct 25, 2020
1 parent 2d42a2e commit be8b6b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions JournalMonitor/JournalMonitor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ public static void ForwardJournalEntry(string line, Action<Event> callback, bool
{
Task.Run(async () =>
{
int timeout;
int timeout = 0;
do
{
await Task.Delay(1500);
timeout = +1;
timeout++;
}
while (EDDI.Instance.CurrentStarSystem.bodies.Count == 0 && timeout < 3);
callback(@event);
Expand Down

0 comments on commit be8b6b2

Please sign in to comment.