summaryrefslogtreecommitdiffstats
path: root/binapi/l2tp/l2tp_rpc.ba.go
diff options
context:
space:
mode:
Diffstat (limited to 'binapi/l2tp/l2tp_rpc.ba.go')
-rw-r--r--binapi/l2tp/l2tp_rpc.ba.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/binapi/l2tp/l2tp_rpc.ba.go b/binapi/l2tp/l2tp_rpc.ba.go
index e82ae3d..0ba01f2 100644
--- a/binapi/l2tp/l2tp_rpc.ba.go
+++ b/binapi/l2tp/l2tp_rpc.ba.go
@@ -97,6 +97,10 @@ func (c *serviceClient_SwIfL2tpv3TunnelDumpClient) Recv() (*SwIfL2tpv3TunnelDeta
case *SwIfL2tpv3TunnelDetails:
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)