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:
Michael Schurter
2019-01-25 16:52:50 -08:00
parent 3477ea009f
commit f3834347e9

View File

@@ -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