From 618d3f9a52406adc139b377ab64e6cfa2559cfc5 Mon Sep 17 00:00:00 2001 From: Zxneric <87642935+Zxneric@users.noreply.github.com> Date: Fri, 29 Nov 2024 22:45:49 +0800 Subject: [PATCH] Fix wrong condition on interface check --- monitor_windows.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monitor_windows.go b/monitor_windows.go index d58e701..179f074 100644 --- a/monitor_windows.go +++ b/monitor_windows.go @@ -108,7 +108,7 @@ func (m *defaultInterfaceMonitor) checkUpdate() error { return E.Cause(err, "find updated interface: ", alias) } m.defaultInterface.Store(newInterface) - if oldInterface != nil && !oldInterface.Equals(*newInterface) { + if oldInterface != nil && oldInterface.Equals(*newInterface) { return nil } m.emit(newInterface, 0)