Fix exception loops in upload/download.
This commit is contained in:
@@ -126,6 +126,8 @@ DownloaderThread::Main()
|
|||||||
catch (const NetException &e)
|
catch (const NetException &e)
|
||||||
{
|
{
|
||||||
LOG_ERROR(e.what());
|
LOG_ERROR(e.what());
|
||||||
|
m_downloadInProgress = false;
|
||||||
|
m_curDownloadData.reset();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -81,6 +81,7 @@ UploaderThread::Main()
|
|||||||
catch (const NetException &e)
|
catch (const NetException &e)
|
||||||
{
|
{
|
||||||
LOG_ERROR(e.what());
|
LOG_ERROR(e.what());
|
||||||
|
m_uploadInProgress = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user