summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-04-26 19:11:04 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-04-26 19:11:04 +0000
commit3d93d7a506072220e5386071826f1079bdacffa5 (patch)
tree5b8936e2da7c44cb0fac8e4818aeaf857b0ea010 /protocols/SkypeWeb/src
parent789b08bcc84bb0b0b107159c5c0e5d67e2c53db4 (diff)
git-svn-id: http://svn.miranda-ng.org/main/trunk@13174 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src')
-rw-r--r--protocols/SkypeWeb/src/skype_proto.cpp14
-rw-r--r--protocols/SkypeWeb/src/skype_proto.h1
2 files changed, 15 insertions, 0 deletions
diff --git a/protocols/SkypeWeb/src/skype_proto.cpp b/protocols/SkypeWeb/src/skype_proto.cpp
index 1948485676..9321106a3f 100644
--- a/protocols/SkypeWeb/src/skype_proto.cpp
+++ b/protocols/SkypeWeb/src/skype_proto.cpp
@@ -233,7 +233,21 @@ int CSkypeProto::OnEvent(PROTOEVENTTYPE iEventType, WPARAM wParam, LPARAM lParam
case EV_PROTO_ONMENU:
return OnInitStatusMenu();
+
+ case EV_PROTO_ONEXIT:
+ return OnPreShutdown(wParam, lParam);
}
return 1;
+}
+
+int CSkypeProto::OnPreShutdown(WPARAM, LPARAM)
+{
+ debugLogA(__FUNCTION__);
+
+ isTerminated = true;
+ if (m_pollingConnection)
+ CallService(MS_NETLIB_SHUTDOWN, (WPARAM)m_pollingConnection, 0);
+
+ return 0;
} \ No newline at end of file
diff --git a/protocols/SkypeWeb/src/skype_proto.h b/protocols/SkypeWeb/src/skype_proto.h
index b6333cfd8d..3401d6c348 100644
--- a/protocols/SkypeWeb/src/skype_proto.h
+++ b/protocols/SkypeWeb/src/skype_proto.h
@@ -75,6 +75,7 @@ public:
// events
static int OnModulesLoaded (WPARAM, LPARAM);
int __cdecl OnDbEventRead (WPARAM, LPARAM);
+ int __cdecl OnPreShutdown (WPARAM, LPARAM);
//search
void __cdecl SearchBasicThread(void* id);