Skip to content

Commit

Permalink
Properly decrement the dispatch queue count on Cancel
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Marsden committed Aug 2, 2017
1 parent 557cfbb commit c50f515
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/autowiring/DispatchQueue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ bool DispatchQueue::Cancel(void) {
// Found a ready thunk, run from here:
thunk.reset(m_pHead);
m_pHead = thunk->m_pFlink;
m_count--;
}
else if (!m_delayedQueue.empty()) {
auto& f = m_delayedQueue.top();
Expand Down

0 comments on commit c50f515

Please sign in to comment.