Skip to content

Commit a2b37c3

Browse files
committed
Acquire lock again
1 parent 335a7d1 commit a2b37c3

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/Future.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ class InternalState {
7171
status_ = COMPLETED;
7272
cond_.notify_all();
7373

74+
lock.unlock();
75+
lock.lock();
7476
if (!listeners_.empty()) {
7577
auto listeners = std::move(listeners_);
7678
lock.unlock();

0 commit comments

Comments
 (0)