Commit a64b49a9 authored by Yuelong Yu's avatar Yuelong Yu
Browse files

fix application crash issue

parent cafed2e4
Pipeline #28309 passed with stage
in 1 minute and 12 seconds
......@@ -35,6 +35,7 @@ namespace AGIPDCtrlNS
m_acq_counter(0),
m_mtx(),
m_exit(false),
m_running(false),
m_rs(SC)
{
LOG_TRACE(__FUNCTION__);
......@@ -52,7 +53,12 @@ namespace AGIPDCtrlNS
AGIPDMetaData::~AGIPDMetaData()
{
LOG_TRACE(__FUNCTION__);
m_exit = true;
m_exit = true;
m_tcp->Disconnect();
while(m_running)
{
this_thread::sleep_for(std::chrono::seconds(1));
}
}
void AGIPDMetaData::Reboot()
......
......@@ -37,6 +37,7 @@ namespace TestNS
void MetaDataTest::TearDown()
{
EXPECT_CALL(*m_tcp, Disconnect());
m_agipd.reset();
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment