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 committed Sep 19, 2023
1 parent 159f125 commit 56c2873
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 56c2873

Please sign in to comment.