From df428745363d5b3d22f2a737930ca0e7af8e2221 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Mon, 10 Jun 2013 08:55:41 +0000 Subject: small cleanup git-svn-id: http://svn.miranda-ng.org/main/trunk@4906 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Skype/src/skype_instances.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'protocols/Skype/src') diff --git a/protocols/Skype/src/skype_instances.cpp b/protocols/Skype/src/skype_instances.cpp index 935ecf73d0..2875311c3f 100644 --- a/protocols/Skype/src/skype_instances.cpp +++ b/protocols/Skype/src/skype_instances.cpp @@ -9,7 +9,7 @@ int CSkypeProto::CompareProtos(const CSkypeProto *p1, const CSkypeProto *p2) CSkypeProto* CSkypeProto::InitSkypeProto(const char* protoName, const wchar_t* userName) { - if (CSkypeProto::instanceList.getCount() > 0) + if (CSkypeProto::instanceList.getCount() > 0) { CSkypeProto::ShowNotification( ::TranslateT("SkypeKit will only permit you to login to one account at a time.\nAdding multiple instances of SkypeKit is prohibited in the licence agreement and standard distribution terms."), @@ -31,6 +31,7 @@ CSkypeProto* CSkypeProto::InitSkypeProto(const char* protoName, const wchar_t* u if ( !keyPair) { CSkypeProto::ShowNotification(::TranslateT("Initialization key corrupted or not valid.")); + ppro->StopSkypeRuntime(); return NULL; } @@ -38,12 +39,14 @@ CSkypeProto* CSkypeProto::InitSkypeProto(const char* protoName, const wchar_t* u if (status != TransportInterface::OK) { CSkypeProto::ShowNotification(::TranslateT("SkypeKit did not initialize.")); + ppro->StopSkypeRuntime(); return NULL; } if ( !ppro->start()) { ::MessageBox(NULL, TranslateT("SkypeKit did not start."), _T(MODULE), MB_OK | MB_ICONERROR); + ppro->StopSkypeRuntime(); return NULL; } -- cgit v1.2.3