Skip to content
This repository has been archived by the owner on Jul 29, 2021. It is now read-only.

Commit

Permalink
fix infinite wait, which blocked AMQP direct method calls
Browse files Browse the repository at this point in the history
  • Loading branch information
hansgschossmann committed Feb 13, 2019
1 parent f2b66b8 commit 8f1d85f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opcpublisher/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@ public async static Task MainAsync(string[] args)
Logger.Information("Publisher is running. Press CTRL-C to quit.");

// wait for Ctrl-C
quitEvent.WaitOne(Timeout.Infinite);
await Task.Delay(Timeout.Infinite, ShutdownTokenSource.Token).ConfigureAwait(false);
}

Logger.Information("");
Expand Down

0 comments on commit 8f1d85f

Please sign in to comment.