summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_proto.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-04-26 20:47:44 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-04-26 20:47:44 +0000
commit949435479e650de8bc0c0e192dc879a3e8afacca (patch)
tree871441363042f527e8cf7308aca7ff59bb46490f /protocols/JabberG/src/jabber_proto.cpp
parentddbeef14631c4232cbd0e9e8d04dcc217cfe5fe6 (diff)
one useless variable less
git-svn-id: http://svn.miranda-ng.org/main/trunk@4542 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/src/jabber_proto.cpp')
-rw-r--r--protocols/JabberG/src/jabber_proto.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/protocols/JabberG/src/jabber_proto.cpp b/protocols/JabberG/src/jabber_proto.cpp
index 9e7f84c48d..fd5dd54ec1 100644
--- a/protocols/JabberG/src/jabber_proto.cpp
+++ b/protocols/JabberG/src/jabber_proto.cpp
@@ -1325,17 +1325,13 @@ int __cdecl CJabberProto::SetStatus(int iNewStatus)
m_ThreadInfo->send("</stream:stream>");
m_ThreadInfo->shutdown();
-
- if (m_bJabberConnected) {
- m_bJabberConnected = m_bJabberOnline = FALSE;
- RebuildInfoFrame();
- }
+ RebuildInfoFrame();
}
m_iStatus = m_iDesiredStatus = ID_STATUS_OFFLINE;
JSendBroadcast(NULL, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE)oldStatus, m_iStatus);
}
- else if ( !m_bJabberConnected && !m_ThreadInfo && !(m_iStatus >= ID_STATUS_CONNECTING && m_iStatus < ID_STATUS_CONNECTING + MAX_CONNECT_RETRIES)) {
+ else if (!m_ThreadInfo && !(m_iStatus >= ID_STATUS_CONNECTING && m_iStatus < ID_STATUS_CONNECTING + MAX_CONNECT_RETRIES)) {
m_iStatus = ID_STATUS_CONNECTING;
ThreadData* thread = new ThreadData(this, JABBER_SESSION_NORMAL);
JSendBroadcast(NULL, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE)oldStatus, m_iStatus);