Refactoring and fixes
[govpp.git] / binapi / vhost_user / vhost_user_rpc.ba.go
index 5c7531f..c985c1b 100644 (file)
@@ -107,6 +107,10 @@ func (c *serviceClient_SwInterfaceVhostUserDumpClient) Recv() (*SwInterfaceVhost
        case *SwInterfaceVhostUserDetails:
                return m, nil
        case *vpe.ControlPingReply:
+               err = c.Stream.Close()
+               if err != nil {
+                       return nil, err
+               }
                return nil, io.EOF
        default:
                return nil, fmt.Errorf("unexpected message: %T %v", m, m)