1
0
Fork 0

Add sentry breadcrumb for FGCom

Trying to understand FLIGHTGEAR-66 crashes where the IAXClient thread
is still running after FGCom::shutdown has (presumably?) been called
This commit is contained in:
James Turner 2021-04-04 16:35:40 +01:00
parent 019d6cc53a
commit 977dd6fd15

View file

@ -36,6 +36,7 @@
#include <ATC/CommStation.hxx>
#include <Airports/airport.hxx>
#include <Navaids/navlist.hxx>
#include <Main/sentryIntegration.hxx>
#include <iaxclient.h>
@ -467,6 +468,9 @@ void FGCom::shutdown()
iaxc_stop_processing_thread();
iaxc_shutdown();
// added to help debugging lingering IAX thread after fgOSCloseWindow
flightgear::addSentryBreadcrumb("Did shutdown FGCom", "info");
assert( static_instance == this );
static_instance = NULL;
}