From 81b3c42aeb76615ed4f1eff0b17d9913c1cace72 Mon Sep 17 00:00:00 2001 From: sebastian-heinz Date: Wed, 20 May 2020 21:31:37 +0800 Subject: [PATCH] only log if running --- .version | 2 +- .../ThreadedBlockingQueueConsumer.cs | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.version b/.version index a6a3a43..1464c52 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -1.0.4 \ No newline at end of file +1.0.5 \ No newline at end of file diff --git a/Arrowgene.Networking/Tcp/Consumer/BlockingQueueConsumption/ThreadedBlockingQueueConsumer.cs b/Arrowgene.Networking/Tcp/Consumer/BlockingQueueConsumption/ThreadedBlockingQueueConsumer.cs index 0f2f29a..35ace1f 100644 --- a/Arrowgene.Networking/Tcp/Consumer/BlockingQueueConsumption/ThreadedBlockingQueueConsumer.cs +++ b/Arrowgene.Networking/Tcp/Consumer/BlockingQueueConsumption/ThreadedBlockingQueueConsumer.cs @@ -46,8 +46,11 @@ private void Consume(int unitOfOrder) } catch (OperationCanceledException ex) { - Logger.Exception(ex); - Stop(); + if (_isRunning) + { + Logger.Exception(ex); + Stop(); + } return; }