mirror of
https://github.com/safing/portmaster
synced 2025-09-15 17:29:42 +00:00
Wait with first update cycle until online
This commit is contained in:
parent
9daa76717f
commit
5d15ec8cc7
7 changed files with 28 additions and 26 deletions
|
@ -6,6 +6,7 @@ import (
|
|||
|
||||
// Event Names
|
||||
const (
|
||||
ModuleName = "netenv"
|
||||
NetworkChangedEvent = "network changed"
|
||||
OnlineStatusChangedEvent = "online status changed"
|
||||
)
|
||||
|
@ -15,7 +16,7 @@ var (
|
|||
)
|
||||
|
||||
func init() {
|
||||
module = modules.Register("netenv", prep, start, nil)
|
||||
module = modules.Register(ModuleName, prep, start, nil)
|
||||
module.RegisterEvent(NetworkChangedEvent, true)
|
||||
module.RegisterEvent(OnlineStatusChangedEvent, true)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue