From 278c137033e7c9a7b6432403e02f511410918a66 Mon Sep 17 00:00:00 2001 From: Eric Daniels Date: Thu, 8 Feb 2024 16:19:13 -0500 Subject: [PATCH] Set errors --- conn.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/conn.go b/conn.go index be1e850..a14613a 100644 --- a/conn.go +++ b/conn.go @@ -248,18 +248,18 @@ func (c *Conn) Close() error { var errs error if err := c.multicastPktConnV4.Close(); err != nil { - multierr.Combine(errs, err) + errs = multierr.Combine(errs, err) } if c.unicastPktConnV4 != nil { if err := c.unicastPktConnV4.Close(); err != nil { - multierr.Combine(errs, err) + errs = multierr.Combine(errs, err) } } if c.unicastPktConnV6 != nil { if err := c.unicastPktConnV6.Close(); err != nil { - multierr.Combine(errs, err) + errs = multierr.Combine(errs, err) } } if errs != nil {