diff options
Diffstat (limited to 'protocols/Skype/src/skype_account.cpp')
-rw-r--r-- | protocols/Skype/src/skype_account.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/protocols/Skype/src/skype_account.cpp b/protocols/Skype/src/skype_account.cpp index 2642ef0da6..f6b91dd8f4 100644 --- a/protocols/Skype/src/skype_account.cpp +++ b/protocols/Skype/src/skype_account.cpp @@ -126,11 +126,15 @@ void CSkypeProto::LogOut() {
if (this->IsOnline() || this->m_iStatus == ID_STATUS_CONNECTING)
{
- this->account->SetAvailability(CContact::OFFLINE);
+ this->account->SetAvailability(Contact::OFFLINE);
this->Log(L"Logout from account");
this->account->Logout(true);
- this->SetAllContactStatus(ID_STATUS_OFFLINE);
+ if ( !::Miranda_Terminated())
+ {
+ this->SetAllContactStatus(ID_STATUS_OFFLINE);
+ this->CloseAllChatSessions();
+ }
}
}
|