summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/proto.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/FacebookRM/src/proto.cpp')
-rw-r--r--protocols/FacebookRM/src/proto.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/protocols/FacebookRM/src/proto.cpp b/protocols/FacebookRM/src/proto.cpp
index 10cf2591bf..9f37b2a8b8 100644
--- a/protocols/FacebookRM/src/proto.cpp
+++ b/protocols/FacebookRM/src/proto.cpp
@@ -162,11 +162,6 @@ int FacebookProto::SetStatus(int new_status)
m_iDesiredStatus = new_status;
break;
- // TODO RM: needed/useful?
- case ID_STATUS_CONNECTING:
- m_iDesiredStatus = ID_STATUS_OFFLINE;
- break;
-
case ID_STATUS_IDLE:
default:
m_iDesiredStatus = ID_STATUS_INVISIBLE;
@@ -178,8 +173,8 @@ int FacebookProto::SetStatus(int new_status)
break;
}
- if (m_iStatus == ID_STATUS_CONNECTING) {
- LOG("===== Status is connecting, no change");
+ if (new_status != ID_STATUS_OFFLINE && m_iStatus == ID_STATUS_CONNECTING) {
+ LOG("===== Status is already connecting, no change");
return 0;
}