Commit b8f921fd authored by Sebastian Eichelbaum's avatar Sebastian Eichelbaum

[CHANGE] - missed something in the template. In the while loop, you have to...

[CHANGE] - missed something in the template. In the while loop, you have to check whether you should quit or not.
parent a8762517
......@@ -249,6 +249,15 @@ void WMTemplate::moduleMain()
debugLog() << "Waiting ...";
m_moduleState.wait();
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// After waking up, the module has to check whether the shutdownFlag fired. If yes, simply quit the module.
// woke up since the module is requested to finish
if ( m_shutdownFlag() )
{
break;
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// The next part is the collection part. We collect the information we need and check whether they changed.
// Do not recalculate everything in every loop. Always check whether the data changed or some property and handle those cases properly.
......
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