Close netlink connection after flushing commands (#1)
This commit is contained in:
parent
0fe8ac05ad
commit
4de6a4e001
|
@ -264,6 +264,8 @@ func (cc *Conn) Flush() error {
|
|||
return err
|
||||
}
|
||||
|
||||
defer conn.Close()
|
||||
|
||||
if _, err := conn.SendMessages(batch(cc.messages)); err != nil {
|
||||
return fmt.Errorf("SendMessages: %v", err)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue