mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 02:15:43 +03:00
nomad: fix panic when no node conn found
A missing return would cause a panic when a server could find no route to a client.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user