diff options
author | George Hazan <ghazan@miranda.im> | 2018-12-04 14:43:57 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-12-04 14:43:57 +0300 |
commit | 934c8f4a7acb9090b80d424b32fccd41abff9a0c (patch) | |
tree | 7016f42723799cbd0a5d5ae277664efd33637d33 /protocols/JabberG | |
parent | 2eb61207710614d8181aca54abf7ecab58e04ba5 (diff) |
more logs added for Jabber & Discord
Diffstat (limited to 'protocols/JabberG')
-rwxr-xr-x | protocols/JabberG/src/jabber_proto.cpp | 4 | ||||
-rwxr-xr-x | protocols/JabberG/src/jabber_thread.cpp | 5 |
2 files changed, 4 insertions, 5 deletions
diff --git a/protocols/JabberG/src/jabber_proto.cpp b/protocols/JabberG/src/jabber_proto.cpp index 7a29dc6e91..68dde9068a 100755 --- a/protocols/JabberG/src/jabber_proto.cpp +++ b/protocols/JabberG/src/jabber_proto.cpp @@ -1110,12 +1110,12 @@ int CJabberProto::SetApparentMode(MCONTACT hContact, int mode) int CJabberProto::SetStatus(int iNewStatus)
{
+ debugLogA("PS_SETSTATUS(%d,%d) => %d", m_iStatus, m_iDesiredStatus, iNewStatus);
+
if (m_iDesiredStatus == iNewStatus)
return 0;
int oldStatus = m_iStatus;
-
- debugLogA("PS_SETSTATUS(%d)", iNewStatus);
m_iDesiredStatus = iNewStatus;
if (iNewStatus == ID_STATUS_OFFLINE) {
diff --git a/protocols/JabberG/src/jabber_thread.cpp b/protocols/JabberG/src/jabber_thread.cpp index dc24c999bc..b34f867053 100755 --- a/protocols/JabberG/src/jabber_thread.cpp +++ b/protocols/JabberG/src/jabber_thread.cpp @@ -263,6 +263,7 @@ void CJabberProto::ServerThread(JABBER_CONN_DATA *pParam) JLoginFailed(LOGINERR_BADUSERID);
LBL_FatalError:
+ debugLogA("m_iDesiredStatus reset to (%d,%d) => %d", m_iStatus, m_iDesiredStatus, ID_STATUS_OFFLINE);
int oldStatus = m_iStatus;
m_iDesiredStatus = m_iStatus = ID_STATUS_OFFLINE;
ProtoBroadcastAck(0, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE)oldStatus, m_iStatus);
@@ -524,19 +525,17 @@ recvRest: WindowList_Broadcast(m_hWindowList, WM_JABBER_CHECK_ONLINE, 0, 0);
// Set status to offline
+ debugLogA("m_iDesiredStatus reset to (%d,%d) => %d", m_iStatus, m_iDesiredStatus, ID_STATUS_OFFLINE);
int oldStatus = m_iStatus;
m_iDesiredStatus = m_iStatus = ID_STATUS_OFFLINE;
ProtoBroadcastAck(0, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE)oldStatus, m_iStatus);
-
// Set all contacts to offline
if (!m_StrmMgmt.IsResumeIdPresent())
{
m_StrmMgmt.ResetState(); //fully reset strm_mgmt state
-// debugLogA("1"); //i think this log calls does not needed anymore ? //sss
for (auto &hContact : AccContacts())
SetContactOfflineStatus(hContact);
-// debugLogA("2");
}
mir_free(m_szJabberJID);
|