From d52c505daaef53cd1c039c1d2b993b7d389c9d94 Mon Sep 17 00:00:00 2001 From: Alex Borisov Date: Sun, 18 Mar 2012 09:51:39 +0200 Subject: FIX: infinite uploading issue, download speed issue --- updater/main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'updater/main.cpp') diff --git a/updater/main.cpp b/updater/main.cpp index a345d58..ac39264 100644 --- a/updater/main.cpp +++ b/updater/main.cpp @@ -57,13 +57,14 @@ int main(int argc, char* argv[]) Logger::Warn("Client executable is absent\n"); } - if (QFile::rename(dir + PathSlash + "client.bin.latest", dir + PathSlash + ClientName)) + // copy client.bin.lates to client.exe or client + if (QFile::copy(dir + PathSlash + "client.bin.latest", dir + PathSlash + ClientName)) { Logger::Info("Client successfully updated\n"); } else { - Logger::Fatal("Can't rename 'client.bin.latest'\n"); + Logger::Fatal("Can't copy 'client.bin.latest'\n"); return -1; } -- cgit v1.2.3