ENH: avoid crash on mac platform
Change-Id: I86e7394956c860b13319b53e647ec6c8f2842c91 (cherry picked from commit 5c7077b8b9712af50c28d675f5129b518e56c92e)
This commit is contained in:
parent
c21c84c62f
commit
61a54bb38e
|
@ -1212,7 +1212,10 @@ void GUI_App::shutdown()
|
|||
}
|
||||
|
||||
if (m_agent) {
|
||||
//BBS avoid a crash on mac platform
|
||||
#ifdef __WINDOWS__
|
||||
m_agent->start_discovery(false, false);
|
||||
#endif
|
||||
delete m_agent;
|
||||
m_agent = nullptr;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue