Skip to content

Commit

Permalink
nomad: fix panic when no node conn found
Browse files Browse the repository at this point in the history
A missing return would cause a panic when a server could find no route
to a client.
  • Loading branch information
schmichael committed Jan 29, 2019
1 parent 3477ea0 commit f383434
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nomad/client_fs_endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ func (f *FileSystem) stream(conn io.ReadWriteCloser) {
code = helper.Int64ToPtr(404)
}
f.handleStreamResultError(err, code, encoder)
return
}

// Get a connection to the server
Expand Down

0 comments on commit f383434

Please sign in to comment.