From cec9786bc11c897a00cf7ab8baafb142a709ba27 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Tue, 24 May 2016 15:26:05 -0400 Subject: Fixed stream behavior when connection ends normally --- src/client.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') 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 { _backoff_amount = std::chrono::seconds(5); } } else { - break; + if (_backoff_type == backoff::none) + { + _established = false; + _backoff_type = backoff::network; + _backoff_amount = std::chrono::milliseconds(0); + } } } -- cgit 1.4.1