Skip to content

Commit 1bfcdd4

Browse files
author
David R. MacIver
committed
we should actually close the connection in the unload event rather than invoke a method that doesn't close it
1 parent 7fa6c1e commit 1bfcdd4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

projects/client/RabbitMQ.Client/src/client/impl/ConnectionBase.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -691,9 +691,7 @@ public void FinishClose()
691691
/// </remarks>
692692
public void HandleDomainUnload(object sender, EventArgs ea)
693693
{
694-
HandleMainLoopException(new ShutdownEventArgs(ShutdownInitiator.Library,
695-
CommonFraming.Constants.InternalError,
696-
"Domain Unload"));
694+
Abort(CommonFraming.Constants.InternalError, "Domain Unload");
697695
}
698696

699697
public bool HardProtocolExceptionHandler(HardProtocolException hpe)

0 commit comments

Comments
 (0)