File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -650,7 +650,7 @@ public void FinishClose()
650
650
closed = true ;
651
651
m_heartbeatRead . Set ( ) ;
652
652
m_heartbeatWrite . Set ( ) ;
653
-
653
+
654
654
m_frameHandler . Close ( ) ;
655
655
m_model0 . SetCloseReason ( m_closeReason ) ;
656
656
m_model0 . FinishClose ( ) ;
@@ -684,10 +684,10 @@ public bool HardProtocolExceptionHandler(HardProtocolException hpe)
684
684
///</remarks>
685
685
public void ClosingLoop ( )
686
686
{
687
- m_frameHandler . Timeout = ConnectionCloseTimeout ;
688
- DateTime startTimeout = DateTime . Now ;
689
687
try
690
688
{
689
+ m_frameHandler . Timeout = ConnectionCloseTimeout ;
690
+ DateTime startTimeout = DateTime . Now ;
691
691
// Wait for response/socket closure or timeout
692
692
while ( ! closed )
693
693
{
@@ -699,6 +699,11 @@ public void ClosingLoop()
699
699
MainLoopIteration ( ) ;
700
700
}
701
701
}
702
+ catch ( ObjectDisposedException ode )
703
+ {
704
+ if ( ! closed )
705
+ LogCloseError ( "Connection didn't close cleanly" , ode ) ;
706
+ }
702
707
catch ( EndOfStreamException eose )
703
708
{
704
709
if ( m_model0 . CloseReason == null )
You can’t perform that action at this time.
0 commit comments