Skip to content

Commit

Permalink
Expose network change check trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
dhaavi committed Apr 6, 2023
1 parent 64b721d commit 08b29ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion netenv/network-change.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ func notifyOfNetworkChange() {
module.TriggerEvent(NetworkChangedEvent, nil)
}

func triggerNetworkChangeCheck() {
// TriggerNetworkChangeCheck triggers a network change check.
func TriggerNetworkChangeCheck() {
select {
case networkChangeCheckTrigger <- struct{}{}:
default:
Expand Down
2 changes: 1 addition & 1 deletion netenv/online-status.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ func updateOnlineStatus(status OnlineStatus, portalURL *url.URL, comment string)
} else {
log.Infof("netenv: setting online status to %s (%s)", status, comment)
}
triggerNetworkChangeCheck()
TriggerNetworkChangeCheck()

// Notify user.
notifyOnlineStatus(status)
Expand Down

0 comments on commit 08b29ab

Please sign in to comment.