projects
/
yandex-traffic
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Abort all connections in progress when device enters disconnected state.
[yandex-traffic]
/
http_fetcher.cpp
diff --git
a/http_fetcher.cpp
b/http_fetcher.cpp
index
2d1d030
..
543260d
100644
(file)
--- a/
http_fetcher.cpp
+++ b/
http_fetcher.cpp
@@
-39,3
+39,12
@@
void HttpFetcher::requestDone (bool err)
_buffer.close ();
_buffer.setBuffer (NULL);
}
+
+
+void HttpFetcher::reset ()
+{
+ if (!busy ())
+ return;
+
+ _http.abort ();
+}