From 323bb6bb51ac11a9ef1d360726edb5404d7f20c6 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 24 Apr 2013 17:58:08 +0000 Subject: crash fix git-svn-id: http://svn.miranda-ng.org/main/trunk@4526 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Skype/src/skype_account.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'protocols/Skype/src/skype_account.cpp') 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; -- cgit v1.2.3