Fix error return when stream send failed

This commit is contained in:
Yuriy Taraday 2018-05-05 22:34:13 +04:00
parent b27200c99b
commit 8d6ee20a7c

2
rpc.go
View File

@ -356,7 +356,7 @@ func (l *Libvirt) requestStream(proc uint32, program uint32, payload []byte, out
if outStream != nil {
err = <-outStreamErr
if err != nil {
return response{}, nil
return response{}, err
}
}