mirror of https://github.com/containers/podman.git
Fix the double replySendFile()
Signed-off-by: Harald Hoyer <harald@redhat.com>
This commit is contained in:
parent
6f3e7f7ecc
commit
d52a2d1e54
|
@ -26,11 +26,6 @@ func (i *LibpodAPI) SendFile(call iopodman.VarlinkCall, ftype string, length int
|
||||||
defer outputFile.Close()
|
defer outputFile.Close()
|
||||||
|
|
||||||
if err = call.ReplySendFile(outputFile.Name()); err != nil {
|
if err = call.ReplySendFile(outputFile.Name()); err != nil {
|
||||||
return call.ReplyErrorOccurred(err.Error())
|
|
||||||
}
|
|
||||||
|
|
||||||
// FIXME return parameter
|
|
||||||
if err = call.ReplySendFile("FIXME_file_handle"); err != nil {
|
|
||||||
// If an error occurs while sending the reply, return the error
|
// If an error occurs while sending the reply, return the error
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue