Skip to content

Commit 7436ce9

Browse files
Matthias Henningkjnilsson
authored andcommitted
WinRT: use TotalMilliseconds instead of Milliseconds
as TimeSpan.Milliseconds returns the milliseconds component
1 parent db72064 commit 7436ce9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -998,8 +998,8 @@ public void MaybeStartHeartbeatTimers()
998998
_heartbeatWriteTimer = new Timer(HeartbeatWriteTimerCallback);
999999
_heartbeatReadTimer = new Timer(HeartbeatReadTimerCallback);
10001000
#if NETFX_CORE
1001-
_heartbeatWriteTimer.Change(200, m_heartbeatTimeSpan.Milliseconds);
1002-
_heartbeatReadTimer.Change(200, m_heartbeatTimeSpan.Milliseconds);
1001+
_heartbeatWriteTimer.Change(200, (int)m_heartbeatTimeSpan.TotalMilliseconds);
1002+
_heartbeatReadTimer.Change(200, (int)m_heartbeatTimeSpan.TotalMilliseconds);
10031003
#else
10041004
_heartbeatWriteTimer.Change(TimeSpan.FromMilliseconds(200), m_heartbeatTimeSpan);
10051005
_heartbeatReadTimer.Change(TimeSpan.FromMilliseconds(200), m_heartbeatTimeSpan);

0 commit comments

Comments
 (0)