From 00efbf9e79798f5b152aedf1f7e7674ae0e9ae20 Mon Sep 17 00:00:00 2001 From: Spagy Date: Fri, 17 Jul 2015 15:49:15 +0100 Subject: [PATCH] Remove call to ProfileLocker::clearAllLocks() The call to ProfileLocker::clearAllLocks() was unnecessary and could remove locks from other programs --- src/main.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 7a493504e..b564c5425 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -25,7 +25,6 @@ #include "src/net/autoupdate.h" #include "src/persistence/toxsave.h" #include "src/persistence/profile.h" -#include "src/persistence/profilelocker.h" #include "src/widget/loginscreen.h" #include "src/widget/translator.h" #include "src/video/camerasource.h" @@ -163,13 +162,6 @@ int main(int argc, char *argv[]) ipc.registerEventHandler("save", &toxSaveEventHandler); ipc.registerEventHandler("activate", &toxActivateEventHandler); - // If we're the IPC owner and we just started, then - // either we're the only running instance or any other instance - // is already so frozen it lost ownership. - // It's safe to remove any potential stale locks in this situation. - if (ipc.isCurrentOwner()) - ProfileLocker::clearAllLocks(); - if (parser.isSet("p")) { QString profileName = parser.value("p");