Use write error directly instead of generic buffer error on listener write
continuous-integration/drone/push Build is passing Details

This commit is contained in:
DataHoarder 2022-09-03 16:48:24 +02:00
parent b8610799c8
commit 59b9c25f17
Signed by: DataHoarder
SSH Key Fingerprint: SHA256:OLTRf6Fl87G52SiR7sWLGNzlJt4WOX+tfI2yxo0z7xk
1 changed files with 1 additions and 1 deletions

View File

@ -505,7 +505,7 @@ func (q *Queue) HandleRadioRequest(writer http.ResponseWriter, request *http.Req
for byteSlice := range writeChannel {
if _, err := writer.Write(byteSlice); err != nil {
requestDone.Fail(errors.New("client ran out of writer buffer"))
requestDone.Fail(err)
return
}
//try flush