From 594afac7e429c6ece9418d36ad7c0e0c761d9296 Mon Sep 17 00:00:00 2001 From: Itay Grudev Date: Mon, 20 May 2024 20:18:45 +0300 Subject: [PATCH] Final note about the potential QLocalServer::removeServer problem --- TODO | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/TODO b/TODO index e843c2b..a2205e5 100644 --- a/TODO +++ b/TODO @@ -3,6 +3,12 @@ Add an instance counter that pings running secondary instances to ensure they ar Run the entire server response logic in a thread, so the SingleApplication primary server is responsive independently of how busy the main thread of the app is. Tests? +Rethink the decision to: +```cpp + QLocalServer::removeServer( blockServerName ); +``` +as that may destroy everything if the primary instance doesn't respond within the allocated timeout. + REMOVE: SingleApplicationPrivate::randomSleep(); quint16 SingleApplicationPrivate::blockChecksum()