Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Nomad
Commits
a9c95bda
Commit
a9c95bda
authored
6 years ago
by
Michael Schurter
Committed by
Michael Schurter
6 years ago
Browse files
Options
Download
Email Patches
Plain Diff
client: fix potentially dropped streaming errors
parent
a27e3af8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
client/fs_endpoint.go
+9
-0
client/fs_endpoint.go
with
9 additions
and
0 deletions
+9
-0
client/fs_endpoint.go
+
9
-
0
View file @
a9c95bda
...
@@ -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
}
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment