tl::DeferredMethod: allow new method calls from inside

This change will allow issuing the same method from inside
itself (postpone execution by re-issuing).
This commit is contained in:
Matthias Koefferlein 2017-09-23 13:14:36 +02:00
parent 5a1a89b665
commit 7d2bf2d969
1 changed files with 1 additions and 1 deletions

View File

@ -152,8 +152,8 @@ DeferredMethodScheduler::do_execute ()
// do the execution outside the locked range to avoid deadlocks if the method's execution
// schedules another call.
for (std::list<DeferredMethodBase *>::iterator m = methods.begin (); m != methods.end (); ++m) {
(*m)->execute ();
(*m)->m_scheduled = false;
(*m)->execute ();
}
}