aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/event/Call.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/event/Call.cxx b/src/event/Call.cxx
index e8343f606..c9f619472 100644
--- a/src/event/Call.cxx
+++ b/src/event/Call.cxx
@@ -53,6 +53,11 @@ public:
private:
virtual void RunDeferred() override {
f();
+
+ mutex.lock();
+ done = true;
+ cond.signal();
+ mutex.unlock();
}
};