diff options
-rw-r--r-- | zebra/zapi.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/zebra/zapi.go b/zebra/zapi.go index b20da8e5..942e8699 100644 --- a/zebra/zapi.go +++ b/zebra/zapi.go @@ -623,6 +623,7 @@ func NewClient(network, address string, typ ROUTE_TYPE, version uint8) (*Client, // Start receive loop only when the first message successfully received. go func() { + defer close(incoming) for { if m, err := receiveSingleMsg(); err != nil { return |