Bugfixes HTTP::Downloader, downloadertest now outputs data immediately without buffering

This commit is contained in:
Thulinma 2020-09-21 14:10:44 +02:00
parent bc3ca638cd
commit e28743db54
2 changed files with 11 additions and 3 deletions

View file

@ -331,7 +331,7 @@ namespace HTTP{
}
// No data? Wait for a second or so.
if (!getSocket().spool()){
if (!getSocket().spool() && getSocket()){
if (progressCallback != 0){
if (!progressCallback()){
WARN_MSG("Download aborted by callback");