diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2015-04-26 19:11:04 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2015-04-26 19:11:04 +0000 |
commit | 3d93d7a506072220e5386071826f1079bdacffa5 (patch) | |
tree | 5b8936e2da7c44cb0fac8e4818aeaf857b0ea010 /protocols/SkypeWeb/src/skype_proto.cpp | |
parent | 789b08bcc84bb0b0b107159c5c0e5d67e2c53db4 (diff) |
git-svn-id: http://svn.miranda-ng.org/main/trunk@13174 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/skype_proto.cpp')
-rw-r--r-- | protocols/SkypeWeb/src/skype_proto.cpp | 14 |
1 files changed, 14 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 |