mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-08-30 05:17:19 +00:00
FIX: error log reduce
Change-Id: I836ba41eefb3a8c12a57a22d208ee7d60140e345
This commit is contained in:
@@ -21,12 +21,12 @@
|
||||
extern "C" {
|
||||
#endif // __cplusplus
|
||||
|
||||
#ifndef __cplusplus
|
||||
#include <stdbool.h>
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
#ifdef __cplusplus
|
||||
typedef wchar_t tchar;
|
||||
#else
|
||||
typedef unsigned short tchar;
|
||||
#endif
|
||||
#else
|
||||
typedef char tchar;
|
||||
#endif
|
||||
@@ -117,7 +117,7 @@ BAMBU_EXPORT void BAMBU_FUNC(Bambu_SetLogger)(Bambu_Tunnel tunnel, Logger logger
|
||||
|
||||
BAMBU_EXPORT int BAMBU_FUNC(Bambu_Open)(Bambu_Tunnel tunnel);
|
||||
|
||||
BAMBU_EXPORT int BAMBU_FUNC(Bambu_StartStream)(Bambu_Tunnel tunnel, bool video);
|
||||
BAMBU_EXPORT int BAMBU_FUNC(Bambu_StartStream)(Bambu_Tunnel tunnel, int video);
|
||||
|
||||
BAMBU_EXPORT int BAMBU_FUNC(Bambu_GetStreamCount)(Bambu_Tunnel tunnel);
|
||||
|
||||
|
||||
@@ -1074,9 +1074,14 @@ void PrinterFileSystem::Reconnect(boost::unique_lock<boost::mutex> &l, int resul
|
||||
if (ret == 0)
|
||||
ret = Bambu_StartStream(tunnel, false);
|
||||
l.lock();
|
||||
m_session.tunnel = tunnel;
|
||||
if (ret == 0)
|
||||
if (ret == 0) {
|
||||
m_session.tunnel = tunnel;
|
||||
break;
|
||||
}
|
||||
if (tunnel) {
|
||||
Bambu_Close(tunnel);
|
||||
Bambu_Destroy(tunnel);
|
||||
}
|
||||
m_last_error = ret;
|
||||
}
|
||||
m_status = Status::Failed;
|
||||
|
||||
Reference in New Issue
Block a user