diff --git a/clientgui/MainDocument.cpp b/clientgui/MainDocument.cpp index 7a89f45173..82cefa6d94 100644 --- a/clientgui/MainDocument.cpp +++ b/clientgui/MainDocument.cpp @@ -651,7 +651,7 @@ int CMainDocument::ResetState() { int CMainDocument::Connect(const wxString& szComputer, int iPort, const wxString& szComputerPassword, const bool bDisconnect, const bool bUseDefaultPassword) { - if (IsComputerNameLocal(szComputer)) { + if (wxGetApp().GetNeedRunDaemon() && IsComputerNameLocal(szComputer)) { // Restart client if not already running m_pClientManager->AutoRestart(); }