summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/skype_proto.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/SkypeWeb/src/skype_proto.cpp')
-rw-r--r--protocols/SkypeWeb/src/skype_proto.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/protocols/SkypeWeb/src/skype_proto.cpp b/protocols/SkypeWeb/src/skype_proto.cpp
index 24b1cf110a..f4bdb7aac9 100644
--- a/protocols/SkypeWeb/src/skype_proto.cpp
+++ b/protocols/SkypeWeb/src/skype_proto.cpp
@@ -49,6 +49,7 @@ CSkypeProto::CSkypeProto(const char* protoName, const TCHAR* userName) :
SkinAddNewSoundEx("skype_call_canceled", "SkypeWeb", LPGEN("Incoming call canceled sound"));
m_hTrouterEvent = CreateEvent(NULL, FALSE, FALSE, NULL);
+ m_hLoginEvent = CreateEvent(NULL, FALSE, FALSE, NULL);
SkypeSetTimer();
}
@@ -62,7 +63,8 @@ CSkypeProto::~CSkypeProto()
UninitPopups();
CloseHandle(m_hTrouterEvent); m_hTrouterEvent = NULL;
-
+ CloseHandle(m_hLoginEvent); m_hLoginEvent = NULL;
+
SkypeUnsetTimer();
}
@@ -235,7 +237,7 @@ int CSkypeProto::SetStatus(int iNewStatus)
if (old_status == ID_STATUS_OFFLINE && m_iStatus == ID_STATUS_OFFLINE)
{
- Login();
+ ForkThread(&CSkypeProto::Login, NULL);
}
else
{