diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2013-06-10 08:55:41 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2013-06-10 08:55:41 +0000 |
commit | df428745363d5b3d22f2a737930ca0e7af8e2221 (patch) | |
tree | cb09a34111a835bfb079256c4f5d23ea26351c4d /protocols/Skype/src/skype_instances.cpp | |
parent | 5cad65e7fb3f8ffaad2355d0b85d980cc5ef07c3 (diff) |
small cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@4906 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_instances.cpp')
-rw-r--r-- | protocols/Skype/src/skype_instances.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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;
}
|