summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skype_proto.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2012-10-27 14:55:51 +0000
committerAlexander Lantsev <aunsane@gmail.com>2012-10-27 14:55:51 +0000
commit380f8c00917e29f68935adf7739312c5886b01f1 (patch)
treee733624b0612f18e39e875225f31ce149cc55223 /protocols/Skype/src/skype_proto.cpp
parent17b51f794dfce371d3f70641cb7a58bf318ab8e1 (diff)
- fixe info loading
git-svn-id: http://svn.miranda-ng.org/main/trunk@2094 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_proto.cpp')
-rw-r--r--protocols/Skype/src/skype_proto.cpp19
1 files changed, 10 insertions, 9 deletions
diff --git a/protocols/Skype/src/skype_proto.cpp b/protocols/Skype/src/skype_proto.cpp
index 789c84525e..7f6b778633 100644
--- a/protocols/Skype/src/skype_proto.cpp
+++ b/protocols/Skype/src/skype_proto.cpp
@@ -339,7 +339,7 @@ int __cdecl CSkypeProto::OnEvent(PROTOEVENTTYPE eventType, WPARAM wParam, LPA
void __cdecl CSkypeProto::SignInAsync(void*)
{
- WaitForSingleObject(&this->signin_lock, INFINITE);
+ //WaitForSingleObject(&this->signin_lock, INFINITE);
this->account->LoginWithPassword(::mir_u2a(this->password), false, false);
this->account->BlockWhileLoggingIn();
@@ -363,10 +363,6 @@ void __cdecl CSkypeProto::SignInAsync(void*)
}
else
{
- this->account.fetch();
- this->account->SetOnAccountChangedCallback(
- (CAccount::OnAccountChanged)&CSkypeProto::OnAccountChanged, this);
-
g_skype->GetConversationList(g_skype->inbox, CConversation::INBOX_CONVERSATIONS);
fetch(g_skype->inbox);
g_skype->SetOnConversationAddedCallback(
@@ -378,13 +374,18 @@ void __cdecl CSkypeProto::SignInAsync(void*)
}
this->SetStatus(this->m_iDesiredStatus);
- this->ForkThread(&CSkypeProto::LoadOwnInfo, this);
- //this->LoadOwnInfo(this);
this->ForkThread(&CSkypeProto::LoadContactList, this);
//this->LoadContactList(this);
+
+ this->account.fetch();
+ this->account->SetOnAccountChangedCallback(
+ (CAccount::OnAccountChanged)&CSkypeProto::OnAccountChanged, this);
+
+ //this->ForkThread(&CSkypeProto::LoadOwnInfo, this);
+ this->LoadOwnInfo(this);
}
- ReleaseMutex(this->signin_lock);
+ //ReleaseMutex(this->signin_lock);
}
bool CSkypeProto::SignIn(bool isReadPassword)
@@ -410,7 +411,7 @@ bool CSkypeProto::SignIn(bool isReadPassword)
else
{
this->ForkThread(&CSkypeProto::SignInAsync, this);
- //this->SignInThread(this);
+ //this->SignInAsync(this);
return true;
}
}