Use fewer keep-alives in VirtualEventBase::keepAliveRelease
authorYedidya Feldblum <yfeldblum@fb.com>
Fri, 6 Oct 2017 00:02:00 +0000 (17:02 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Fri, 6 Oct 2017 00:13:53 +0000 (17:13 -0700)
commit71d0dd7fa8165a80fd9b93d99c541d550fcdfe70
treee83e3fb4bf474d2d44b92416903df9c48628ea51
parent25ddbd7f566e7ea55e64c8e2afed576814b4cb69
Use fewer keep-alives in VirtualEventBase::keepAliveRelease

Summary:
[Folly] Use fewer keep-alives in `VirtualEventBase::keepAliveRelease`.

{D5982132} mistakenly used `VirtualEventBase::add`, which holds a keep-alive on the master `EventBase`, instead of calling `EventBase::add` directly.

(Note: this ignores all push blocking failures!)

Reviewed By: andriigrynenko

Differential Revision: D5992403

fbshipit-source-id: f427025c06f01e6a93d6eae8a051c3553f58be20
folly/io/async/VirtualEventBase.h