File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
aeron-client/src/main/cpp Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -446,13 +446,14 @@ class CLIENT_EXPORT ClientConductor
446
446
447
447
if (nowMs > (m_timeOfLastKeepaliveMs + KEEPALIVE_TIMEOUT_MS))
448
448
{
449
- if (nowMs > (m_driverProxy.timeOfLastDriverKeepalive () + m_driverTimeoutMs))
449
+
450
+ int64_t lastKeepaliveMs = m_driverProxy.timeOfLastDriverKeepalive ();
451
+ if (nowMs > (lastKeepaliveMs + m_driverTimeoutMs))
450
452
{
451
453
m_driverActive = false ;
452
454
453
- int64_t age = m_driverProxy.timeOfLastDriverKeepalive () + m_driverTimeoutMs;
454
455
DriverTimeoutException exception (
455
- " MediaDriver keepalive: age=" + std::to_string (age ) +
456
+ " MediaDriver keepalive: age=" + std::to_string (nowMs - lastKeepaliveMs ) +
456
457
" ms > timeout=" + std::to_string (m_driverTimeoutMs) + " ms" , SOURCEINFO);
457
458
m_errorHandler (exception);
458
459
}
You can’t perform that action at this time.
0 commit comments