mirror of
https://github.com/oxen-io/lokinet-control-panel.git
synced 2023-12-14 05:53:00 +01:00
add a mutex for packaging: if this mutex still exists, it tells the user to close all instances of lokinet or the frontend ui
This commit is contained in:
parent
91249e590d
commit
a6f8353aa0
|
@ -7,6 +7,10 @@
|
|||
#include <sstream>
|
||||
#include <memory>
|
||||
#include <mutex>
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
using namespace std::literals::chrono_literals;
|
||||
|
||||
|
@ -17,7 +21,10 @@ constexpr auto BOOTSTRAP_URL = "https://seed.lokinet.org/lokinet.signed";
|
|||
LokinetProcessManager::LokinetProcessManager()
|
||||
: m_managedThreadRunning(false)
|
||||
, m_didLaunchProcess(false)
|
||||
{
|
||||
{
|
||||
#ifdef Q_OS_WIN
|
||||
::CreateMutex(nullptr, FALSE, "lokinet_qt5_ui");
|
||||
#endif
|
||||
}
|
||||
|
||||
LokinetProcessManager::~LokinetProcessManager()
|
||||
|
|
Loading…
Reference in a new issue