Skip to content

Commit 8f87098

Browse files
author
Emile Joubert
committed
Close socket only once
1 parent 972f0e2 commit 8f87098

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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

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

537537
TerminateMainloop();
538-
FinishClose();
539538
}
540539

541540
public void HeartbeatReadLoop()
@@ -563,7 +562,6 @@ public void HeartbeatReadLoop()
563562
}
564563

565564
TerminateMainloop();
566-
FinishClose();
567565
}
568566

569567
public void NotifyHeartbeatThread()
@@ -677,7 +675,7 @@ public void MainLoopIteration()
677675
}
678676
}
679677

680-
// Only call at the end of the Mainloop or HeartbeatLoop
678+
// Only call at the end of the Mainloop
681679
public void FinishClose()
682680
{
683681
// Notify hearbeat loops that they can leave
@@ -968,7 +966,6 @@ protected void StartAndTune()
968966
if (!serverVersion.Equals(Protocol.Version))
969967
{
970968
TerminateMainloop();
971-
FinishClose();
972969
throw new ProtocolVersionMismatchException(Protocol.MajorVersion,
973970
Protocol.MinorVersion,
974971
serverVersion.Major,

0 commit comments

Comments
 (0)