diff --git a/client/ClientDll.cpp b/client/ClientDll.cpp index 8e8ca8f..bb39e8d 100644 --- a/client/ClientDll.cpp +++ b/client/ClientDll.cpp @@ -552,7 +552,9 @@ DWORD WINAPI StartClient(LPVOID lParam) // The main ClientApp. settings.SetServer(list[0].c_str(), settings.ServerPort()); } - if (!app.m_bShared) { + static bool hasRun = false; + if (!app.m_bShared && !hasRun) { + hasRun = true; auto a = cfg.GetStr("settings", "share_list"); auto shareList = a.empty() ? std::vector{} : StringToVector(a, '|'); for (int i = 0; i < shareList.size(); ++i) {