diff options
author | George Hazan <george.hazan@gmail.com> | 2016-06-19 14:14:40 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2016-06-19 14:14:40 +0000 |
commit | 0fb97def52d30f7cb3e7e849420f74427523646b (patch) | |
tree | 1ebc16f460b53730ab8ce6755ffd699c6bb81199 /protocols | |
parent | 742025cc23c1a2b299048000721c9f98223d0fae (diff) |
less aggressive method of closing connection
might cause problems on slow machines
git-svn-id: http://svn.miranda-ng.org/main/trunk@17010 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/MRA/src/MraProto.cpp | 3 | ||||
-rw-r--r-- | protocols/MRA/src/version.h | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/protocols/MRA/src/MraProto.cpp b/protocols/MRA/src/MraProto.cpp index bd109c77f5..ccb253a53f 100644 --- a/protocols/MRA/src/MraProto.cpp +++ b/protocols/MRA/src/MraProto.cpp @@ -476,7 +476,8 @@ int CMraProto::SetStatus(int iNewStatus) for (MCONTACT hContact = db_find_first(m_szModuleName); hContact; hContact = db_find_next(hContact, m_szModuleName))
SetContactBasicInfoW(hContact, SCBIFSI_LOCK_CHANGES_EVENTS, (SCBIF_ID | SCBIF_GROUP_ID | SCBIF_SERVER_FLAG | SCBIF_STATUS), -1, -1, 0, 0, ID_STATUS_OFFLINE, 0, 0, 0);
- NETLIB_CLOSEHANDLE(m_hConnection);
+ if (m_hConnection != NULL)
+ Netlib_Shutdown(m_hConnection);
}
else {
// если offline то сразу ставим connecting, но обработка как offline
diff --git a/protocols/MRA/src/version.h b/protocols/MRA/src/version.h index c8c3b49a32..eda2bceea0 100644 --- a/protocols/MRA/src/version.h +++ b/protocols/MRA/src/version.h @@ -1,7 +1,7 @@ #define __MAJOR_VERSION 2
#define __MINOR_VERSION 1
-#define __RELEASE_NUM 0
-#define __BUILD_NUM 10
+#define __RELEASE_NUM 1
+#define __BUILD_NUM 1
#include <stdver.h>
|