Skip to content

Commit

Permalink
fixed linter and test errors
Browse files Browse the repository at this point in the history
  • Loading branch information
joereuss12 authored and bbockelm committed Sep 26, 2023
1 parent e4f81d4 commit 50d782b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion handle_http.go
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,11 @@ Loop:
continue
} else if startBelowLimit == 0 {
warning := []byte("Warning! Downloading too slow...\n")
p.Write(warning)
status, err := p.Write(warning)
if err != nil {
log.Errorln("Problem displaying slow message", err, status)
continue
}
startBelowLimit = time.Now().Unix()
continue
} else if (time.Now().Unix() - startBelowLimit) < slowTransferWindow {
Expand Down

0 comments on commit 50d782b

Please sign in to comment.