Tweaked shutdown code for async Udp Listener

This commit is contained in:
Eric Fontana
2015-04-14 12:45:31 -04:00
parent 2377d4ebd2
commit dcd104e4f4
2 changed files with 18 additions and 10 deletions

View File

@@ -337,11 +337,11 @@ namespace TimberWinR.TestGenerator
private static JObject ShutdownTimberWinR()
{
_timberWinR.Shutdown();
// Cancel any/all other threads
_cancellationTokenSource.Cancel();
_timberWinR.Shutdown();
var json = Diagnostics.DiagnosticsOutput();
LogManager.GetCurrentClassLogger()