From b71a56de3885fd708e123fa6c81725a3f3ba573f Mon Sep 17 00:00:00 2001 From: Anthony Thibault Date: Sun, 20 Mar 2016 12:18:33 -0700 Subject: [PATCH] Application: disable deadlock watchdog for debug builds Cause it will cause a crash if you sit on a breakpoint for too long. --- interface/src/Application.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index a971051311..f6ab94aa61 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -272,11 +272,13 @@ public: void run() override { while (!_quit) { QThread::sleep(HEARTBEAT_UPDATE_INTERVAL_SECS); +#ifdef NDEBUG auto now = usecTimestampNow(); auto lastHeartbeatAge = now - _heartbeat; if (lastHeartbeatAge > MAX_HEARTBEAT_AGE_USECS) { deadlockDetectionCrash(); } +#endif } }