commit | b20de692d8a258eeea7b88619e722b19edb5408f | [log] [tgz] |
---|---|---|
author | Alex Deymo <deymo@google.com> | Sun Feb 05 07:47:37 2017 +0000 |
committer | Alex Deymo <deymo@google.com> | Mon Feb 13 21:26:44 2017 +0000 |
tree | e789654764a8f2fc3a1093137ea01e7d285601ed | |
parent | 4ea2d92b2df53fa5147dc323d6d3c5b9236f83c0 [diff] |
Cleanup the RetryTimeoutCallback(). When canceling a request or destroying the LibcurlHttpFetcher, a RetryTimeoutCallback callback could be leaked if the fetcher was waiting on a network retry. This patch keeps track of the retry callback and cancels it on CleanUp, making sure the callback is not leaked. Bug: 34178297 Test: Added unittest to trigger this case. Change-Id: I7016641a7f31429933779e55c77cbabb6289c3dd