Skip to content

Commit 8a0fd6b

Browse files
committed
Notify when the MainLoop returns.
1 parent 832194e commit 8a0fd6b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/examples/ShutdownableServer.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,10 @@ public static int Main(string[] args) {
7676
using (IModel ch = conn.CreateModel()) {
7777
Subscription sub = new Subscription(ch, "ShutdownableServer");
7878
new ShutdownableServer(sub).MainLoop();
79+
Console.Out.WriteLine("Returned from MainLoop.");
7980
}
8081
}
82+
Console.Out.WriteLine("Leaving the program.");
8183
return 0;
8284
} catch (Exception e) {
8385
Console.Error.WriteLine(e);

0 commit comments

Comments
 (0)