diff options
Diffstat (limited to 'src/libs/clangsupport/connectionserver.h')
-rw-r--r-- | src/libs/clangsupport/connectionserver.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/libs/clangsupport/connectionserver.h b/src/libs/clangsupport/connectionserver.h index 8f13e631c5..b60083c4f8 100644 --- a/src/libs/clangsupport/connectionserver.h +++ b/src/libs/clangsupport/connectionserver.h @@ -72,11 +72,17 @@ public: } + void ensureAliveMessageIsSent() + { + if (m_aliveTimer.remainingTime() == 0) + sendAliveMessage(); + } + private: void connectToLocalServer(const QString &connectionName) { QObject::connect(&m_localSocket, - static_cast<void (QLocalSocket::*)(QLocalSocket::LocalSocketError)>(&QLocalSocket::error), + QOverload<QLocalSocket::LocalSocketError>::of(&QLocalSocket::error), [&] (QLocalSocket::LocalSocketError) { qWarning() << "ConnectionServer error:" << m_localSocket.errorString() << connectionName; }); |