From b9eb1625f9c02e9b1105972d60651fa50574e5c6 Mon Sep 17 00:00:00 2001 From: "chunmao.guo" Date: Mon, 2 Sep 2024 19:00:34 +0800 Subject: [PATCH] FIX: sleep before retry on file session lost Change-Id: I924f0a370a2a8d6a9b5aa082cbe791fc2e1a18c5 Jira: STUDIO-7991 (cherry picked from commit 3b8ef667b106de60cba542ad5ceee5db8714fc3d) --- src/slic3r/GUI/Printer/PrinterFileSystem.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/slic3r/GUI/Printer/PrinterFileSystem.cpp b/src/slic3r/GUI/Printer/PrinterFileSystem.cpp index 8d272057f8..f97ea156bc 100644 --- a/src/slic3r/GUI/Printer/PrinterFileSystem.cpp +++ b/src/slic3r/GUI/Printer/PrinterFileSystem.cpp @@ -1239,6 +1239,8 @@ void PrinterFileSystem::Reconnect(boost::unique_lock &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)