summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2016-07-17 09:16:10 +0000
committerRobert Pösel <robyer@seznam.cz>2016-07-17 09:16:10 +0000
commit13887196e493841b2e141e316987de2299471bc0 (patch)
treed9006f1c6bbb08ad23c6d9d7339cfda369d6543f
parent341e876730e9553df2d43a5a640deebf7ba08d0f (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
-rw-r--r--protocols/FacebookRM/src/communication.cpp4
-rw-r--r--protocols/FacebookRM/src/version.h2
2 files changed, 3 insertions, 3 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);
diff --git a/protocols/FacebookRM/src/version.h b/protocols/FacebookRM/src/version.h
index 6ac30259db..debfa9ac95 100644
--- a/protocols/FacebookRM/src/version.h
+++ b/protocols/FacebookRM/src/version.h
@@ -1,7 +1,7 @@
#define __MAJOR_VERSION 0
#define __MINOR_VERSION 2
#define __RELEASE_NUM 14
-#define __BUILD_NUM 2
+#define __BUILD_NUM 3
#include <stdver.h>