History

Remove use of start() w/o param in ConnectionMonitor

Ryan Huffman committed 10 years ago

Commit bbf5afe1 parent 5077ec21 file · +2 −4Browse files

Showing the changes to interface/src/ConnectionMonitor.cpp (1 of 1 file). Show all

Unified · Split

interface/src/ConnectionMonitor.cpp+2−4
@@ -33,9 +33,8 @@ void ConnectionMonitor::init() { · 32 unmodified lines
3333 connect(&domainHandler, &DomainHandler::domainConnectionRefused, this, &ConnectionMonitor::stopTimer);
3434
3535 _timer.setSingleShot(true);
36− _timer.setInterval(ON_INITIAL_LOAD_DISPLAY_AFTER_DISCONNECTED_FOR_X_MS);
3736 if (!domainHandler.isConnected()) {
38− _timer.start();
37+ _timer.start(ON_INITIAL_LOAD_DISPLAY_AFTER_DISCONNECTED_FOR_X_MS);
3938 }
4039
4140 connect(&_timer, &QTimer::timeout, this, []() {
@@ -46,8 +45,7 @@ void ConnectionMonitor::init() { · 4 unmodified lines
4645
4746 void ConnectionMonitor::startTimer() {
4847 qDebug() << "ConnectionMonitor: Starting timer";
49− _timer.setInterval(DISPLAY_AFTER_DISCONNECTED_FOR_X_MS);
50− _timer.start();
48+ _timer.start(DISPLAY_AFTER_DISCONNECTED_FOR_X_MS);
5149 }
5250
5351 void ConnectionMonitor::stopTimer() {