Fix RequestContext held too long issue in EventBase
[folly.git] / folly / io / async / EventBase.h
index e688abe7f61a95d068a73dca3a2cce02ad873e9b..3399cea2dacbdcc57af56f3318efd1837b65583e 100644 (file)
@@ -150,6 +150,7 @@ class EventBase : private boost::noncopyable,
 
     virtual void runLoopCallback() noexcept = 0;
     void cancelLoopCallback() {
+      context_.reset();
       unlink();
     }