mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 11:23:42 +00:00
ENH: avoid crash on mac platform
Change-Id: I86e7394956c860b13319b53e647ec6c8f2842c91 (cherry picked from commit 5c7077b8b9712af50c28d675f5129b518e56c92e)
This commit is contained in:
@@ -1212,7 +1212,10 @@ void GUI_App::shutdown()
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (m_agent) {
|
if (m_agent) {
|
||||||
|
//BBS avoid a crash on mac platform
|
||||||
|
#ifdef __WINDOWS__
|
||||||
m_agent->start_discovery(false, false);
|
m_agent->start_discovery(false, false);
|
||||||
|
#endif
|
||||||
delete m_agent;
|
delete m_agent;
|
||||||
m_agent = nullptr;
|
m_agent = nullptr;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user