FIX: sleep before retry on file session lost
Change-Id: I924f0a370a2a8d6a9b5aa082cbe791fc2e1a18c5 Jira: STUDIO-7991 (cherry picked from commit 3b8ef667b106de60cba542ad5ceee5db8714fc3d)
This commit is contained in:
parent
f99116d251
commit
b9eb1625f9
1 changed files with 2 additions and 0 deletions
|
@ -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 a new issue