File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
projects/client/RabbitMQ.Client/src/client/impl Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -901,6 +901,7 @@ public void HeartbeatWriteTimerCallback(object state)
901
901
if ( ! _closed )
902
902
{
903
903
WriteFrame ( _heartbeatFrame ) ;
904
+ _heartbeatWriteTimer ? . Change ( ( int ) _heartbeatTimeSpan . TotalMilliseconds , Timeout . Infinite ) ;
904
905
}
905
906
}
906
907
catch ( ObjectDisposedException )
@@ -913,11 +914,6 @@ public void HeartbeatWriteTimerCallback(object state)
913
914
// ignore, let the read callback detect
914
915
// peer unavailability. See rabbitmq/rabbitmq-dotnet-client#638 for details.
915
916
}
916
-
917
- if ( _closed == false )
918
- {
919
- _heartbeatWriteTimer ? . Change ( ( int ) _heartbeatTimeSpan . TotalMilliseconds , Timeout . Infinite ) ;
920
- }
921
917
}
922
918
923
919
void MaybeStopHeartbeatTimers ( )
You can’t perform that action at this time.
0 commit comments