From d64bc2b6193e50be4d25d9415477f13c91c4f9c3 Mon Sep 17 00:00:00 2001 From: BlacAmDK Date: Tue, 5 Dec 2023 21:32:53 +0800 Subject: [PATCH] fix: RunGuard not works on Qt6 --- 3rdparty/RunGuard.hpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/3rdparty/RunGuard.hpp b/3rdparty/RunGuard.hpp index f24c798..6a38d55 100644 --- a/3rdparty/RunGuard.hpp +++ b/3rdparty/RunGuard.hpp @@ -75,9 +75,6 @@ bool RunGuard::isAnotherRunning(quint64 *data_out) { } bool RunGuard::tryToRun(quint64 *data_in) { - if (isAnotherRunning(nullptr)) // Extra check - return false; - memLock.acquire(); const bool result = sharedMem.create(sizeof(quint64)); if (result) memcpy(sharedMem.data(), data_in, sizeof(quint64));