summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Task.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Task.cc b/src/Task.cc
index 345d310..eb6cc7f 100644
--- a/src/Task.cc
+++ b/src/Task.cc
@@ -330,6 +330,8 @@ void * Balau::QueueBase::iPop(Events::Async * event, bool wait) {
m_lock.leave();
Task::operationYield(event, Task::INTERRUPTIBLE);
m_lock.enter();
+ if (event->gotSignal())
+ event->reset();
} else {
pthread_cond_wait(&m_cond, &m_lock.m_lock);
}