From bbf5afeb8d78d6e0ecf922453f5aaa30523e7faa Mon Sep 17 00:00:00 2001 From: Ryan Huffman Date: Mon, 24 Oct 2016 14:35:38 -0700 Subject: [PATCH] Remove use of start() w/o param in ConnectionMonitor --- interface/src/ConnectionMonitor.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/interface/src/ConnectionMonitor.cpp b/interface/src/ConnectionMonitor.cpp index a2033fad10..30e5b5e694 100644 --- a/interface/src/ConnectionMonitor.cpp +++ b/interface/src/ConnectionMonitor.cpp @@ -33,9 +33,8 @@ void ConnectionMonitor::init() { connect(&domainHandler, &DomainHandler::domainConnectionRefused, this, &ConnectionMonitor::stopTimer); _timer.setSingleShot(true); - _timer.setInterval(ON_INITIAL_LOAD_DISPLAY_AFTER_DISCONNECTED_FOR_X_MS); if (!domainHandler.isConnected()) { - _timer.start(); + _timer.start(ON_INITIAL_LOAD_DISPLAY_AFTER_DISCONNECTED_FOR_X_MS); } connect(&_timer, &QTimer::timeout, this, []() { @@ -46,8 +45,7 @@ void ConnectionMonitor::init() { void ConnectionMonitor::startTimer() { qDebug() << "ConnectionMonitor: Starting timer"; - _timer.setInterval(DISPLAY_AFTER_DISCONNECTED_FOR_X_MS); - _timer.start(); + _timer.start(DISPLAY_AFTER_DISCONNECTED_FOR_X_MS); } void ConnectionMonitor::stopTimer() {