Exit the loop earlier if protocol manager is exiting
This commit is contained in:
parent
3944d81cfc
commit
f89933bb46
@ -113,7 +113,8 @@ void ConnectToServer::getClientServerInfo()
|
|||||||
const std::string server_id_file = StringUtils::getBasename(sid);
|
const std::string server_id_file = StringUtils::getBasename(sid);
|
||||||
uint16_t port = 0;
|
uint16_t port = 0;
|
||||||
unsigned server_id = 0;
|
unsigned server_id = 0;
|
||||||
while (StkTime::getMonoTimeMs() < timeout)
|
while (!ProtocolManager::lock()->isExiting() &&
|
||||||
|
StkTime::getMonoTimeMs() < timeout)
|
||||||
{
|
{
|
||||||
std::set<std::string> files;
|
std::set<std::string> files;
|
||||||
file_manager->listFiles(files, dir);
|
file_manager->listFiles(files, dir);
|
||||||
|
Loading…
Reference in New Issue
Block a user