Commit f79de567 authored by Andrii Grynenko's avatar Andrii Grynenko Committed by facebook-github-bot-0

Convert Thrift1(2)RequestDispatcher::sendMessage()

Summary:This depends on D2897095.

The main goal here is to start moving onRequestSuccess and onRequestFailure calls higher in the stack.

Reviewed By: mmcduff

Differential Revision: D2899959

fb-gh-sync-id: 4e074c2d734f88f5be56000095b892c6d47c0dcc
shipit-source-id: 4e074c2d734f88f5be56000095b892c6d47c0dcc
parent 32154268
......@@ -168,7 +168,9 @@ void EventBaseOnDestructionCallback::runLoopCallback() noexcept {
DCHECK(fm.get() != nullptr);
ThreadLocalCache::erase(evb_);
fm->loopUntilNoReady();
while (fm->hasTasks()) {
evb_.loopOnce();
}
delete this;
}
......
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