Updated Insight component to use the main thread's event listener, as opposed to constructing its own.

This commit is contained in:
Nav
2022-02-09 17:47:05 +00:00
parent 49710e7484
commit 56dc870b8e
3 changed files with 40 additions and 81 deletions

View File

@@ -43,6 +43,7 @@ namespace Bloom
if (this->insightConfig->insightEnabled) {
this->insight = std::make_unique<Insight>(
*(this->applicationEventListener),
this->eventManager,
this->projectConfig.value(),
this->environmentConfig.value(),
@@ -128,6 +129,10 @@ namespace Bloom
Thread::setThreadState(ThreadState::SHUTDOWN_INITIATED);
Logger::info("Shutting down Bloom");
if (this->insight != nullptr) {
this->insight->shutdown();
}
this->stopDebugServer();
this->stopTargetController();
this->stopSignalHandler();