Fix panic in snapshotter when connection fails

Signed-off-by: Derek McGowan <derek@mcgstyle.net>
This commit is contained in:
Derek McGowan 2017-07-17 10:55:32 -07:00
parent 8eadcb8c28
commit a220fb6b1f
No known key found for this signature in database
GPG Key ID: F58C5D0A4405ACDB

View File

@ -105,7 +105,7 @@ func (r *remoteSnapshotter) Walk(ctx context.Context, fn func(context.Context, s
Snapshotter: r.snapshotterName, Snapshotter: r.snapshotterName,
}) })
if err != nil { if err != nil {
errdefs.FromGRPC(err) return errdefs.FromGRPC(err)
} }
for { for {
resp, err := sc.Recv() resp, err := sc.Recv()