Skip to content

Commit

Permalink
Remove network requirement on start
Browse files Browse the repository at this point in the history
  • Loading branch information
nekohasekai committed Nov 2, 2023
1 parent 4580c43 commit 69872ae
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions monitor_shared.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,7 @@ func NewDefaultInterfaceMonitor(networkMonitor NetworkUpdateMonitor, logger logg
}

func (m *defaultInterfaceMonitor) Start() error {
err := m.checkUpdate()
if err != nil {
m.logger.Error("initialize default interface: ", err)
}
_ = m.checkUpdate()
m.element = m.networkMonitor.RegisterCallback(m.delayCheckUpdate)
return nil
}
Expand Down

0 comments on commit 69872ae

Please sign in to comment.