services/content: ignore io.EOF after successful commit
Signed-off-by: Stephen J Day <stephen.day@docker.com>
This commit is contained in:
parent
317b884110
commit
d3fdfd85f4
1 changed files with 4 additions and 0 deletions
|
@ -310,6 +310,10 @@ func (s *Service) Write(session api.Content_WriteServer) (err error) {
|
|||
|
||||
req, err = session.Recv()
|
||||
if err != nil {
|
||||
if err == io.EOF {
|
||||
return nil
|
||||
}
|
||||
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue