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

Fix WTCallback::interruptHandler to not use nullptr EventBase

Summary: (Note: this ignores all push blocking failures!)

Reviewed By: spalamarchuk

Differential Revision: D9994424

fbshipit-source-id: 2055d3b09ce2e1d783624a9902463efade4714d4
parent 074417c3
......@@ -79,6 +79,9 @@ struct WTCallback : public std::enable_shared_from_this<WTCallback>,
void interruptHandler(exception_wrapper ew) {
auto rBase = base_.rlock();
if (!*rBase) {
return;
}
// Capture shared_ptr of self in lambda, if we don't do this, object
// may go away before the lambda is executed from event base thread.
// This is not racing with timeoutExpired anymore because this is called
......
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