diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2016-05-24 15:26:05 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2016-05-24 15:26:05 -0400 |
commit | cec9786bc11c897a00cf7ab8baafb142a709ba27 (patch) | |
tree | b90afa6ec31f50d4137c64fe4f17c84f101c6af5 /src | |
parent | ac260cef3c8c035e3975a8c412553b25cb2b6c06 (diff) | |
download | libtwittercpp-cec9786bc11c897a00cf7ab8baafb142a709ba27.tar.gz libtwittercpp-cec9786bc11c897a00cf7ab8baafb142a709ba27.tar.bz2 libtwittercpp-cec9786bc11c897a00cf7ab8baafb142a709ba27.zip |
Fixed stream behavior when connection ends normally
Diffstat (limited to 'src')
-rw-r--r-- | src/client.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/client.cpp b/src/client.cpp index 617af62..c6bcd65 100644 --- a/src/client.cpp +++ b/src/client.cpp | |||
@@ -707,7 +707,12 @@ namespace twitter { | |||
707 | _backoff_amount = std::chrono::seconds(5); | 707 | _backoff_amount = std::chrono::seconds(5); |
708 | } | 708 | } |
709 | } else { | 709 | } else { |
710 | break; | 710 | if (_backoff_type == backoff::none) |
711 | { | ||
712 | _established = false; | ||
713 | _backoff_type = backoff::network; | ||
714 | _backoff_amount = std::chrono::milliseconds(0); | ||
715 | } | ||
711 | } | 716 | } |
712 | } | 717 | } |
713 | 718 | ||