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:
parent
2164a65b7e
commit
76ab3785c2
1 changed files with 6 additions and 0 deletions
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue