mirror of
https://github.com/intel/llvm.git
synced 2026-01-24 08:30:34 +08:00
Don't call DoOnRemoval if you are just peeking at events.
llvm-svn: 160079
This commit is contained in:
@@ -304,7 +304,11 @@ Listener::FindNextEventInternal
|
||||
// it so it should be okay to get the next event off the queue here - and it might
|
||||
// be useful to do that in the "DoOnRemoval".
|
||||
lock.Unlock();
|
||||
event_sp->DoOnRemoval();
|
||||
|
||||
// Don't call DoOnRemoval if you aren't removing the event...
|
||||
if (remove)
|
||||
event_sp->DoOnRemoval();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user