FIX: PrinterFileSystem report real connect error

Change-Id: I99d6ff7f6dcb1f53ccf59854f5f19d0bd39fa9fc
Jira: none
This commit is contained in:
chunmao.guo 2024-03-13 16:46:55 +08:00 committed by Lane.Wei
parent dcd1dbd5ab
commit 25764ce9f6
1 changed files with 1 additions and 1 deletions

View File

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