diff options
author | Robert Pösel <robyer@seznam.cz> | 2016-07-17 09:16:10 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2016-07-17 09:16:10 +0000 |
commit | 13887196e493841b2e141e316987de2299471bc0 (patch) | |
tree | d9006f1c6bbb08ad23c6d9d7339cfda369d6543f /protocols/FacebookRM/src/communication.cpp | |
parent | 341e876730e9553df2d43a5a640deebf7ba08d0f (diff) |
Facebook: Fix missing else (broken in r16843); version bump
This missing else might have caused various issues with getting updates from FB, because when "type" was "continue", "lb", or "heartbeat", plugin was wrongly increasing the seq number - so then potentially missing some updates.
git-svn-id: http://svn.miranda-ng.org/main/trunk@17103 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/communication.cpp')
-rw-r--r-- | protocols/FacebookRM/src/communication.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/FacebookRM/src/communication.cpp b/protocols/FacebookRM/src/communication.cpp index 0196d58c57..d0c62cae5f 100644 --- a/protocols/FacebookRM/src/communication.cpp +++ b/protocols/FacebookRM/src/communication.cpp @@ -1309,7 +1309,7 @@ bool facebook_client::channel() this->chat_sticky_num_ = utils::text::source_get_value2(&resp.data, "\"sticky\":\"", "\""); parent->debugLogA(" Got self sticky number: %s", this->chat_sticky_num_.c_str()); } - if (type == "refresh") { + else if (type == "refresh") { // Requested relogin (due to some settings change, removing this session, etc.) parent->debugLogA("!!! Requested refresh"); @@ -1320,7 +1320,7 @@ bool facebook_client::channel() parent->debugLogA(" Got reconnect reason: %s", this->chat_reconnect_reason_.c_str()); return this->reconnect(); - } + } else if (!type.empty()) { // for "msg", "fullReload" and maybe also other types // Something has been received, throw to new thread to process std::string* response_data = new std::string(resp.data); |