Cancel timeout only if not run
authorJon Maltiel Swenson <jmswen@fb.com>
Fri, 6 Nov 2015 02:54:38 +0000 (18:54 -0800)
committerfacebook-github-bot-9 <folly-bot@fb.com>
Fri, 6 Nov 2015 03:20:24 +0000 (19:20 -0800)
commit06b04cb147733a296278c42c5d0364ec3078e1c9
tree8eb2a4b33a2a0aba9fe9da9b60bd2b1a9015dc15
parent131db1206830ee07ef89bceb41c1f3c598764685
Cancel timeout only if not run

Summary: Do not cancel TimeoutHandler timeout if the timeout has already run.

Reviewed By: spalamarchuk

Differential Revision: D2622280

fb-gh-sync-id: 27d83b44ab225e2859695f4e5f21cef934824a35
folly/experimental/fibers/Baton.cpp
folly/experimental/fibers/Baton.h
folly/experimental/fibers/test/FibersTest.cpp