Skip to content

Commit ff0138f

Browse files
author
Emile Joubert
committed
Backed out changeset 3384544076b9
1 parent 8f87098 commit ff0138f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,6 +535,7 @@ public void HeartbeatWriteLoop()
535535
}
536536

537537
TerminateMainloop();
538+
FinishClose();
538539
}
539540

540541
public void HeartbeatReadLoop()
@@ -562,6 +563,7 @@ public void HeartbeatReadLoop()
562563
}
563564

564565
TerminateMainloop();
566+
FinishClose();
565567
}
566568

567569
public void NotifyHeartbeatThread()
@@ -675,7 +677,7 @@ public void MainLoopIteration()
675677
}
676678
}
677679

678-
// Only call at the end of the Mainloop
680+
// Only call at the end of the Mainloop or HeartbeatLoop
679681
public void FinishClose()
680682
{
681683
// Notify hearbeat loops that they can leave
@@ -966,6 +968,7 @@ protected void StartAndTune()
966968
if (!serverVersion.Equals(Protocol.Version))
967969
{
968970
TerminateMainloop();
971+
FinishClose();
969972
throw new ProtocolVersionMismatchException(Protocol.MajorVersion,
970973
Protocol.MinorVersion,
971974
serverVersion.Major,

0 commit comments

Comments
 (0)