forked from qt-creator/qt-creator
Clang: Add environment variable to disable alive timer
Change-Id: I558ff0fe83cce9ee921819c6fd9c18534fad9bcf Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
@@ -61,8 +61,12 @@ ConnectionClient::ConnectionClient(IpcClientInterface *client)
|
||||
{
|
||||
processAliveTimer.setInterval(10000);
|
||||
|
||||
const bool startAliveTimer = !qgetenv("QTC_CLANG_NO_ALIVE_TIMER").toInt();
|
||||
|
||||
if (startAliveTimer) {
|
||||
connect(&processAliveTimer, &QTimer::timeout,
|
||||
this, &ConnectionClient::restartProcessIfTimerIsNotResettedAndSocketIsEmpty);
|
||||
}
|
||||
|
||||
connect(&localSocket,
|
||||
static_cast<void (QLocalSocket::*)(QLocalSocket::LocalSocketError)>(&QLocalSocket::error),
|
||||
|
Reference in New Issue
Block a user