FIX: sleep before retry on file session lost
Change-Id: I924f0a370a2a8d6a9b5aa082cbe791fc2e1a18c5 Jira: STUDIO-7991
This commit is contained in:
parent
2c38dc51f2
commit
3b8ef667b1
|
@ -1239,6 +1239,8 @@ void PrinterFileSystem::Reconnect(boost::unique_lock<boost::mutex> &l, int resul
|
|||
if (c) c(result, r, nullptr);
|
||||
}
|
||||
m_messages.clear();
|
||||
if (result)
|
||||
m_cond.timed_wait(l, boost::posix_time::seconds(10));
|
||||
while (true) {
|
||||
while (m_stopped) {
|
||||
if (m_session.owner == nullptr)
|
||||
|
|
Loading…
Reference in New Issue