summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/listener.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/common/listener.cpp b/common/listener.cpp
index 656677b..d580327 100644
--- a/common/listener.cpp
+++ b/common/listener.cpp
@@ -65,7 +65,6 @@ Listener::Listener(const QByteArray &resourceInstanceIdentifier, const QByteArra
65 65
66 m_checkConnectionsTimer = std::unique_ptr<QTimer>(new QTimer); 66 m_checkConnectionsTimer = std::unique_ptr<QTimer>(new QTimer);
67 m_checkConnectionsTimer->setSingleShot(true); 67 m_checkConnectionsTimer->setSingleShot(true);
68 m_checkConnectionsTimer->setInterval(std::chrono::milliseconds{1000});
69 connect(m_checkConnectionsTimer.get(), &QTimer::timeout, [this]() { 68 connect(m_checkConnectionsTimer.get(), &QTimer::timeout, [this]() {
70 if (m_connections.isEmpty()) { 69 if (m_connections.isEmpty()) {
71 SinkTrace() << QString("No connections, shutting down."); 70 SinkTrace() << QString("No connections, shutting down.");
@@ -189,7 +188,7 @@ void Listener::checkConnections()
189 if (m_connections.isEmpty()) { 188 if (m_connections.isEmpty()) {
190 loadResource().setLowerBoundRevision(std::numeric_limits<qint64>::max()); 189 loadResource().setLowerBoundRevision(std::numeric_limits<qint64>::max());
191 } 190 }
192 m_checkConnectionsTimer->start(); 191 m_checkConnectionsTimer->start(std::chrono::milliseconds{1000});
193} 192}
194 193
195void Listener::onDataAvailable() 194void Listener::onDataAvailable()