This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
Compoment
/
BPA.CAP
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Fixed connection dispose bug before connection connected.
master
Savorboard
5 years ago
parent
226d42a817
commit
bec28ca389
2 changed files
with
3 additions
and
3 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
src/DotNetCore.CAP.Kafka/KafkaConsumerClient.cs
+2
-2
src/DotNetCore.CAP.RabbitMQ/RabbitMQConsumerClient.cs
+ 1
- 1
src/DotNetCore.CAP.Kafka/KafkaConsumerClient.cs
View File
@@ -75,7 +75,7 @@ namespace DotNetCore.CAP.Kafka
public void Dispose()
{
_consumerClient.Dispose();
_consumerClient
?
.Dispose();
}
#region private methods
+ 2
- 2
src/DotNetCore.CAP.RabbitMQ/RabbitMQConsumerClient.cs
View File
@@ -89,8 +89,8 @@ namespace DotNetCore.CAP.RabbitMQ
public void Dispose()
{
_channel.Dispose();
_connection.Dispose();
_channel
?
.Dispose();
_connection
?
.Dispose();
}
#region events
Write
Preview
Loading…
Cancel
Save