FIX: local file proto

Change-Id: Ie45dc223a027e3855f1242bfeed2f346b1df600f
Jira: none
(cherry picked from commit e709ddacc8388970b62b62f1958736e13c4dca96)
This commit is contained in:
chunmao.guo
2024-10-24 10:09:56 +08:00
committed by Noisyfox
parent ef5463f9fe
commit b6b6ef57da
3 changed files with 8 additions and 4 deletions

View File

@@ -1546,7 +1546,9 @@ void PrinterFileSystem::Reconnect(boost::unique_lock<boost::mutex> &l, int resul
ret = Bambu_StartStreamEx
? Bambu_StartStreamEx(tunnel, CTRL_TYPE)
: Bambu_StartStream(tunnel, false);
} while (ret == Bambu_would_block);
if (ret == Bambu_would_block)
boost::this_thread::sleep(boost::posix_time::milliseconds(100));
} while (ret == Bambu_would_block && !m_stopped);
l.lock();
if (ret == 0) {
m_session.tunnel = tunnel;