Skip to content

Commit

Permalink
Fix wrong condition on interface check
Browse files Browse the repository at this point in the history
  • Loading branch information
Zxneric authored and nekohasekai committed Nov 29, 2024
1 parent c21c623 commit 618d3f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion monitor_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 618d3f9

Please sign in to comment.