Skip to content

Commit

Permalink
Merge branch 'release/1.3.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
MvRens committed Aug 8, 2019
2 parents 442cfdf + d17f4f3 commit 53dc0b7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Tapeti/Connection/TapetiWorker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public class TapetiWorker

// These fields are for use in the taskQueue only!
private RabbitMQ.Client.IConnection connection;
private bool isClosing;
private bool isReconnect;
private IModel channelInstance;
private ulong lastDeliveryTag;
Expand Down Expand Up @@ -173,6 +174,8 @@ public Task Close()

return taskQueue.Value.Add(() =>
{
isClosing = true;
if (channelInstance != null)
{
channelInstance.Dispose();
Expand Down Expand Up @@ -371,6 +374,9 @@ private IModel GetChannel()
});
channelInstance = null;
if (!isClosing)
taskQueue.Value.Add(() => WithRetryableChannel(channel => { }));
};

channelInstance.BasicReturn += HandleBasicReturn;
Expand Down

0 comments on commit 53dc0b7

Please sign in to comment.