diff options
author | George Hazan <george.hazan@gmail.com> | 2013-04-26 20:47:44 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-04-26 20:47:44 +0000 |
commit | 949435479e650de8bc0c0e192dc879a3e8afacca (patch) | |
tree | 871441363042f527e8cf7308aca7ff59bb46490f /protocols/JabberG/src/jabber_proto.cpp | |
parent | ddbeef14631c4232cbd0e9e8d04dcc217cfe5fe6 (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.cpp | 8 |
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);
|