diff options
author | George Hazan <george.hazan@gmail.com> | 2013-10-23 19:03:18 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-10-23 19:03:18 +0000 |
commit | 8ed8b8bee2fa6abdfaa4b92543070baef0f340cb (patch) | |
tree | 3531535e9094ca3cd7bb52ea6101dfaecca63e6c /src/modules/netlib/netlibhttp.cpp | |
parent | ed81133e974f844c73ebf717cd0f5bc15e3981fc (diff) |
- fix for the old & nasty bug in netlib that rarely crashed Facebook & VK
- code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@6602 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/netlib/netlibhttp.cpp')
-rw-r--r-- | src/modules/netlib/netlibhttp.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/netlib/netlibhttp.cpp b/src/modules/netlib/netlibhttp.cpp index 9aafc3d066..1022e63e69 100644 --- a/src/modules/netlib/netlibhttp.cpp +++ b/src/modules/netlib/netlibhttp.cpp @@ -839,6 +839,9 @@ INT_PTR NetlibHttpTransaction(WPARAM wParam, LPARAM lParam) return 0;
}
+ if (nlhr->nlc != NULL && GetNetlibHandleType(nlhr->nlc) != NLH_CONNECTION)
+ nlhr->nlc = NULL;
+
NetlibConnection* nlc = NetlibHttpProcessUrl(nlhr, nlu, (NetlibConnection*)nlhr->nlc);
if (nlc == NULL)
return 0;
|