Commit abfcc445 authored by Sreekanth Arikatla's avatar Sreekanth Arikatla
Browse files

REFAC: Move cleanup calls in module to Module::End()

parent a0823f32
......@@ -98,18 +98,6 @@ Module::start()
}
}
// Cleanup
if (m_preCleanUpCallback)
{
m_preCleanUpCallback(this);
}
this->cleanUpModule();
if (m_postCleanUpCallback)
{
m_postCleanUpCallback(this);
}
m_status = ModuleStatus::INACTIVE;
}
......@@ -144,6 +132,19 @@ Module::pause()
void
Module::end()
{
// Cleanup
if (m_preCleanUpCallback)
{
m_preCleanUpCallback(this);
}
this->cleanUpModule();
if (m_postCleanUpCallback)
{
m_postCleanUpCallback(this);
}
if ((m_status == ModuleStatus::INACTIVE) ||
(m_status == ModuleStatus::TERMINATING))
{
......
Markdown is supported
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