From 7e6648651727b5dda16c35ed403c47889a169206 Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Tue, 26 Sep 2017 22:41:16 +0200 Subject: [PATCH] adjust timeout --- networkdetector/devicemonitor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/networkdetector/devicemonitor.cpp b/networkdetector/devicemonitor.cpp index a7e82275..3680b7fc 100644 --- a/networkdetector/devicemonitor.cpp +++ b/networkdetector/devicemonitor.cpp @@ -77,8 +77,8 @@ void DeviceMonitor::arpLookupFinished(int exitCode) ping(); } - if (m_host->reachable() && m_host->lastSeenTime().addSecs(150) < QDateTime::currentDateTime()) { - qCDebug(dcNetworkDetector()) << "Could not reach device for > 150 secs. Marking it as gone." << m_host->address() << m_host->macAddress(); + if (m_host->reachable() && m_host->lastSeenTime().addSecs(300) < QDateTime::currentDateTime()) { + qCDebug(dcNetworkDetector()) << "Could not reach device for > 5 mins. Marking it as gone." << m_host->address() << m_host->macAddress(); m_host->setReachable(false); emit reachableChanged(false); }