summaryrefslogtreecommitdiffstats
path: root/binapi/udp/udp_rpc.ba.go
diff options
context:
space:
mode:
Diffstat (limited to 'binapi/udp/udp_rpc.ba.go')
-rw-r--r--binapi/udp/udp_rpc.ba.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/binapi/udp/udp_rpc.ba.go b/binapi/udp/udp_rpc.ba.go
index 0b17c63..d2a8bd0 100644
--- a/binapi/udp/udp_rpc.ba.go
+++ b/binapi/udp/udp_rpc.ba.go
@@ -77,6 +77,10 @@ func (c *serviceClient_UDPEncapDumpClient) Recv() (*UDPEncapDetails, error) {
case *UDPEncapDetails:
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)