wsd: test: break connectLOKit when shutdown is signaled

Change-Id: Ic4869f782fe41ba2cb626ad0e4ebc6fc6a667725
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
This commit is contained in:
Ashod Nakashian 2023-05-21 22:32:06 -04:00 committed by Ashod Nakashian
parent 2164a65b7e
commit 76ab3785c2

View file

@ -493,6 +493,12 @@ connectLOKit(const std::shared_ptr<SocketPoll>& socketPoll, const Poco::URI& uri
return ws;
}
if (SigUtil::getShutdownRequestFlag())
{
TST_LOG("Shutdown requested, giving up connectLOKit");
break;
}
TST_LOG("ERROR: Reconnecting (retry #" << (max_retries - retries) << ") to "
<< uri.toString());
}