FIX: sleep before retry on file session lost

Change-Id: I924f0a370a2a8d6a9b5aa082cbe791fc2e1a18c5
Jira: STUDIO-7991
(cherry picked from commit 3b8ef667b106de60cba542ad5ceee5db8714fc3d)
This commit is contained in:
chunmao.guo 2024-09-02 19:00:34 +08:00 committed by Noisyfox
parent f99116d251
commit b9eb1625f9

View file

@ -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)