diff options
author | David Athay <ko2fan@gmail.com> | 2007-12-21 15:07:20 +0000 |
---|---|---|
committer | David Athay <ko2fan@gmail.com> | 2007-12-21 15:07:20 +0000 |
commit | 4c8a8afa1df1c3d7c48464432d168d2dfa1b81dc (patch) | |
tree | 7d31ee20abe90299c6782ab76ab58f1efc725715 /src/gui/updatewindow.cpp | |
parent | 0c531de47eae77ab9fb2ec7a1fd6fc2be1462ef4 (diff) | |
download | mana-4c8a8afa1df1c3d7c48464432d168d2dfa1b81dc.tar.gz mana-4c8a8afa1df1c3d7c48464432d168d2dfa1b81dc.tar.bz2 mana-4c8a8afa1df1c3d7c48464432d168d2dfa1b81dc.tar.xz mana-4c8a8afa1df1c3d7c48464432d168d2dfa1b81dc.zip |
Attempted to fix client freeze when unable to connect to update host, and added exit dialog
Diffstat (limited to 'src/gui/updatewindow.cpp')
-rw-r--r-- | src/gui/updatewindow.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/gui/updatewindow.cpp b/src/gui/updatewindow.cpp index 73dbd604..f115238d 100644 --- a/src/gui/updatewindow.cpp +++ b/src/gui/updatewindow.cpp @@ -307,17 +307,20 @@ int UpdaterWindow::downloadThread(void *ptr) switch (res) { case CURLE_COULDNT_CONNECT: - // give more debug info on that error - std::cerr << "curl error " << res << ": " - << uw->mCurlError << " " << url.c_str() - << std::endl; - break; - default: std::cerr << "curl error " << res << ": " << uw->mCurlError << " host: " << url.c_str() << std::endl; + break; + } + + if (!uw->mStoreInMemory) + { + fclose(outfile); + ::remove(outFilename.c_str()); } + attempts++; + continue; } curl_easy_cleanup(curl); |