From e7537b74789e431f3e5f3cea1ba635e9c9951918 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Sun, 18 Mar 2018 17:13:10 +0100 Subject: On mac 1s is not enough, so give plenty of time on the first start. --- common/listener.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'common') diff --git a/common/listener.cpp b/common/listener.cpp index 9922c48..656677b 100644 --- a/common/listener.cpp +++ b/common/listener.cpp @@ -65,14 +65,15 @@ Listener::Listener(const QByteArray &resourceInstanceIdentifier, const QByteArra m_checkConnectionsTimer = std::unique_ptr(new QTimer); m_checkConnectionsTimer->setSingleShot(true); - m_checkConnectionsTimer->setInterval(1000); + m_checkConnectionsTimer->setInterval(std::chrono::milliseconds{1000}); connect(m_checkConnectionsTimer.get(), &QTimer::timeout, [this]() { if (m_connections.isEmpty()) { SinkTrace() << QString("No connections, shutting down."); quit(); } }); - m_checkConnectionsTimer->start(); + //Give plenty of time during the first start. + m_checkConnectionsTimer->start(std::chrono::milliseconds{60000}); // TODO: experiment with different timeouts // or even just drop down to invoking the method queued? => invoke queued unless we need throttling -- cgit v1.2.3