@@ -1018,8 +1018,8 @@ public void MaybeStartHeartbeatTimers()
1018
1018
_heartbeatWriteTimer . Change ( 200 , ( int ) m_heartbeatTimeSpan . TotalMilliseconds ) ;
1019
1019
_heartbeatReadTimer . Change ( 200 , ( int ) m_heartbeatTimeSpan . TotalMilliseconds ) ;
1020
1020
#else
1021
- _heartbeatWriteTimer = new Timer ( HeartbeatWriteTimerCallback , null , 200 , m_heartbeatTimeSpan . Milliseconds ) ;
1022
- _heartbeatReadTimer = new Timer ( HeartbeatReadTimerCallback , null , 200 , m_heartbeatTimeSpan . Milliseconds ) ;
1021
+ _heartbeatWriteTimer = new Timer ( HeartbeatWriteTimerCallback , null , 200 , ( int ) m_heartbeatTimeSpan . TotalMilliseconds ) ;
1022
+ _heartbeatReadTimer = new Timer ( HeartbeatReadTimerCallback , null , 200 , ( int ) m_heartbeatTimeSpan . TotalMilliseconds ) ;
1023
1023
_heartbeatWriteTimer . Change ( TimeSpan . FromMilliseconds ( 200 ) , m_heartbeatTimeSpan ) ;
1024
1024
_heartbeatReadTimer . Change ( TimeSpan . FromMilliseconds ( 200 ) , m_heartbeatTimeSpan ) ;
1025
1025
#endif
@@ -1077,7 +1077,7 @@ public void HeartbeatReadTimerCallback(object state)
1077
1077
TerminateMainloop ( ) ;
1078
1078
FinishClose ( ) ;
1079
1079
}
1080
- else if ( _heartbeatReadTimer != null )
1080
+ else if ( _heartbeatReadTimer != null )
1081
1081
{
1082
1082
_heartbeatReadTimer . Change ( Heartbeat * 1000 , Timeout . Infinite ) ;
1083
1083
}
@@ -1151,7 +1151,7 @@ private void MaybeDisposeTimer(ref Timer timer)
1151
1151
{
1152
1152
// we are shutting down, ignore
1153
1153
}
1154
- catch ( NullReferenceException )
1154
+ catch ( NullReferenceException )
1155
1155
{
1156
1156
// this should be very rare but could occur from a race condition
1157
1157
}
@@ -1281,7 +1281,7 @@ protected void StartAndTune()
1281
1281
var connectionStartCell = new BlockingCell ( ) ;
1282
1282
m_model0 . m_connectionStartCell = connectionStartCell ;
1283
1283
m_model0 . HandshakeContinuationTimeout = m_factory . HandshakeContinuationTimeout ;
1284
- m_frameHandler . ReadTimeout = m_factory . HandshakeContinuationTimeout . Milliseconds ;
1284
+ m_frameHandler . ReadTimeout = ( int ) m_factory . HandshakeContinuationTimeout . TotalMilliseconds ;
1285
1285
m_frameHandler . SendHeader ( ) ;
1286
1286
1287
1287
var connectionStart = ( ConnectionStartDetails )
0 commit comments