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

Commit 8f1d85f

Browse files
fix infinite wait, which blocked AMQP direct method calls
1 parent f2b66b8 commit 8f1d85f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opcpublisher/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ public async static Task MainAsync(string[] args)
750750
Logger.Information("Publisher is running. Press CTRL-C to quit.");
751751

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

756756
Logger.Information("");

0 commit comments

Comments
 (0)