summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-04-09 02:37:58 +0300
committerAndrei Karas <akaras@inbox.ru>2018-04-09 02:37:58 +0300
commit82ed6c45226da8e7324764cc1abeb33b7d36a818 (patch)
treedefdb093b89468afcb31fb3564901076df7779e6
parent885f40b84765bdcd5a0dcbdd7af93cf07d713350 (diff)
downloadmanaplus-82ed6c45226da8e7324764cc1abeb33b7d36a818.tar.gz
manaplus-82ed6c45226da8e7324764cc1abeb33b7d36a818.tar.bz2
manaplus-82ed6c45226da8e7324764cc1abeb33b7d36a818.tar.xz
manaplus-82ed6c45226da8e7324764cc1abeb33b7d36a818.zip
Show in log "starting upload" message if uploading started.
-rw-r--r--src/net/download.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/net/download.cpp b/src/net/download.cpp
index 84d7f47e3..c3b15cd2b 100644
--- a/src/net/download.cpp
+++ b/src/net/download.cpp
@@ -186,7 +186,10 @@ void Download::setWriteFunction(WriteFunction write)
bool Download::start()
{
- logger->log("Starting download: %s", mUrl.c_str());
+ if (mUpload)
+ logger->log("Starting upload: %s", mUrl.c_str());
+ else
+ logger->log("Starting download: %s", mUrl.c_str());
mThread = SDL::createThread(&downloadThread, "download", this);
if (mThread == nullptr)