diff options
author | Robert Pösel <robyer@seznam.cz> | 2013-06-19 20:47:23 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2013-06-19 20:47:23 +0000 |
commit | ee88b0130e900c5f9f957b18f5db86800d7707c7 (patch) | |
tree | e9cb765df91eb9981822bf35c98f7462b6d9ea0f /plugins/PluginUpdater/src/DlgUpdate.cpp | |
parent | a33760bd3aea841b60e23909405e78b00b19ae79 (diff) |
PluginUpdater: Use persistent http connection. Version bump.
git-svn-id: http://svn.miranda-ng.org/main/trunk@5049 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/PluginUpdater/src/DlgUpdate.cpp')
-rw-r--r-- | plugins/PluginUpdater/src/DlgUpdate.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/PluginUpdater/src/DlgUpdate.cpp b/plugins/PluginUpdater/src/DlgUpdate.cpp index e59ca433e8..9c957d0f90 100644 --- a/plugins/PluginUpdater/src/DlgUpdate.cpp +++ b/plugins/PluginUpdater/src/DlgUpdate.cpp @@ -62,6 +62,7 @@ static void ApplyUpdates(void *param) mir_sntprintf(tszFileTemp, SIZEOF(tszFileTemp), _T("%s\\Temp"), tszRoot);
SafeCreateDirectory(tszFileTemp);
+ HANDLE nlc = NULL;
for (int i=0; i < todo.getCount(); ++i) {
ListView_EnsureVisible(hwndList, i, FALSE);
if ( !todo[i].bEnabled) {
@@ -77,11 +78,12 @@ static void ApplyUpdates(void *param) SetStringText(hwndList, i, TranslateT("Downloading..."));
FILEURL *pFileUrl = &todo[i].File;
- if ( !DownloadFile(pFileUrl->tszDownloadURL, pFileUrl->tszDiskPath, pFileUrl->CRCsum))
+ if ( !DownloadFile(pFileUrl->tszDownloadURL, pFileUrl->tszDiskPath, pFileUrl->CRCsum, nlc))
SetStringText(hwndList, i, TranslateT("Failed!"));
else
SetStringText(hwndList, i, TranslateT("Succeeded."));
}
+ Netlib_CloseHandle(nlc);
if (todo.getCount() == 0) {
LBL_Exit:
|