FIX: PrinterFileSystem report real connect error

Change-Id: Id6750cfa2a98fe8325ba677dabb606a0a701b495
This commit is contained in:
chunmao.guo 2024-05-08 19:32:39 +08:00 committed by Lane.Wei
parent b02661e85f
commit 65db1ef6e0

View File

@ -1295,7 +1295,7 @@ void PrinterFileSystem::Reconnect(boost::unique_lock<boost::mutex> &l, int resul
} }
wxLogMessage("PrinterFileSystem::Reconnect Failed"); wxLogMessage("PrinterFileSystem::Reconnect Failed");
m_status = Status::Failed; m_status = Status::Failed;
SendChangedEvent(EVT_STATUS_CHANGED, m_status, "", m_last_error); SendChangedEvent(EVT_STATUS_CHANGED, m_status, "", url.size() < 2 ? 1 : m_last_error);
m_cond.timed_wait(l, boost::posix_time::seconds(10)); m_cond.timed_wait(l, boost::posix_time::seconds(10));
} }
m_status = Status::ListSyncing; m_status = Status::ListSyncing;