Commit a9c95bda authored by Michael Schurter's avatar Michael Schurter Committed by Michael Schurter
Browse files

client: fix potentially dropped streaming errors

parent a27e3af8
Showing with 9 additions and 0 deletions
+9 -0
...@@ -276,6 +276,15 @@ OUTER: ...@@ -276,6 +276,15 @@ OUTER:
break OUTER break OUTER
case frame, ok := <-frames: case frame, ok := <-frames:
if !ok { if !ok {
// frame may have been closed when an error
// occurred. Check once more for an error.
select {
case streamErr = <-errCh:
// There was a pending error!
default:
// No error, continue on
}
break OUTER break OUTER
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment