Commit e3f67e10 authored by Andrii Grynenko's avatar Andrii Grynenko Committed by Facebook Github Bot

Require runBeforeLoop callbacks to be canceled prior to EventBase destruction

Summary: This makes it similar to other other events registered with EventBase.

Reviewed By: yfeldblum

Differential Revision: D4331277

fbshipit-source-id: 5d728d4ae5faff1a72ed724b4e2a6c0dd6c3b02d
parent 8d0d6318
......@@ -171,9 +171,7 @@ EventBase::~EventBase() {
clearCobTimeouts();
while (!runBeforeLoopCallbacks_.empty()) {
delete &runBeforeLoopCallbacks_.front();
}
DCHECK_EQ(0, runBeforeLoopCallbacks_.size());
(void)runLoopCallbacks();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment