summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skype_account.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Skype/src/skype_account.cpp')
-rw-r--r--protocols/Skype/src/skype_account.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/protocols/Skype/src/skype_account.cpp b/protocols/Skype/src/skype_account.cpp
index e318a6672a..1f7ca50541 100644
--- a/protocols/Skype/src/skype_account.cpp
+++ b/protocols/Skype/src/skype_account.cpp
@@ -17,7 +17,9 @@ void CSkypeProto::OnAccountChanged(int prop)
if (loginStatus == CAccount::LOGGED_OUT)
{
CAccount::LOGOUTREASON whyLogout;
- this->account->GetPropLogoutreason(whyLogout);
+ if (!this->account->GetPropLogoutreason(whyLogout))
+ break;
+
if (whyLogout != CAccount::LOGOUT_CALLED)
{
this->m_iStatus = ID_STATUS_OFFLINE;