diff options
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/SkypeWeb/src/skype_proto.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/protocols/SkypeWeb/src/skype_proto.cpp b/protocols/SkypeWeb/src/skype_proto.cpp index 28d75c7b29..24b1cf110a 100644 --- a/protocols/SkypeWeb/src/skype_proto.cpp +++ b/protocols/SkypeWeb/src/skype_proto.cpp @@ -199,7 +199,7 @@ int CSkypeProto::SetStatus(int iNewStatus) break;
}
- mir_cslock lck(m_StatusLock);
+ //mir_cslock lck(m_StatusLock);
debugLogA(__FUNCTION__ ": changing status from %i to %i", m_iStatus, iNewStatus);
@@ -208,11 +208,6 @@ int CSkypeProto::SetStatus(int iNewStatus) if (iNewStatus == ID_STATUS_OFFLINE)
{
- // logout
- isTerminated = true;
- requestQueue->Stop();
- ShutdownConnections();
-
if (m_iStatus > ID_STATUS_CONNECTING + 1)
{
SendRequest(new DeleteEndpointRequest(li));
@@ -220,6 +215,10 @@ int CSkypeProto::SetStatus(int iNewStatus) delSetting("endpointId");
delSetting("expires");
}
+ // logout
+ isTerminated = true;
+ requestQueue->Stop();
+ ShutdownConnections();
CloseDialogs();
ProtoBroadcastAck(NULL, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE)m_iStatus, ID_STATUS_OFFLINE);
|