From 7d2bf2d9693744ca75e4987b4ca15456d3dee017 Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Sat, 23 Sep 2017 13:14:36 +0200 Subject: [PATCH] tl::DeferredMethod: allow new method calls from inside This change will allow issuing the same method from inside itself (postpone execution by re-issuing). --- src/tl/tl/tlDeferredExecution.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tl/tl/tlDeferredExecution.cc b/src/tl/tl/tlDeferredExecution.cc index b89dccf93..e8012ebe7 100644 --- a/src/tl/tl/tlDeferredExecution.cc +++ b/src/tl/tl/tlDeferredExecution.cc @@ -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::iterator m = methods.begin (); m != methods.end (); ++m) { - (*m)->execute (); (*m)->m_scheduled = false; + (*m)->execute (); } }