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

Commit c502a1e

Browse files
Added Dispose calls for channel and connection.
1 parent 1dfa527 commit c502a1e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/RabbitMQ.Client.Core.DependencyInjection/QueueService.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ public void Dispose()
106106
{
107107
_connection.Close();
108108
}
109+
110+
_channel?.Dispose();
111+
_connection?.Dispose();
109112
}
110113

111114
/// <summary>

0 commit comments

Comments
 (0)