Summary: This is the solution for our `HHWheelTimer` crashes, as suggested in
D2617966#25.
djwatson also mentioned that maybe there should be some logging in the destructor if there are outstanding callbacks. I couldn't think of anything that would add to the `assert` that already exists in `destroy`. I'm open to suggestions though.
Reviewed By: djwatson
Differential Revision:
D2628154
fb-gh-sync-id:
f3db6e9384517c9bf3cbb60af8c1e711703a07fa
}
HHWheelTimer::~HHWheelTimer() {
+ CHECK(count_ == 0);
}
void HHWheelTimer::destroy() {
assert(count_ == 0);
+ cancelAll();
DelayedDestruction::destroy();
}