From e3f37e7a155b669eb4bc3eb125f11bc99cfb0328 Mon Sep 17 00:00:00 2001 From: BaiMeow Date: Sun, 24 Nov 2024 22:14:02 +0800 Subject: [PATCH] fix: delete iface from pending list failed --- daemon/daemon.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/daemon.go b/daemon/daemon.go index cd2ec19..a74cde7 100644 --- a/daemon/daemon.go +++ b/daemon/daemon.go @@ -154,7 +154,7 @@ func (d *daemon) updateLoop() { deleteList = append(deleteList, iface) } for _, iface := range deleteList { - slices.DeleteFunc(d.pendingIfaces, func(i string) bool { + d.pendingIfaces = slices.DeleteFunc(d.pendingIfaces, func(i string) bool { return i == iface }) }