mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-11-01 07:56:57 +00:00
Handle network update callbacks in background
This commit is contained in:
@@ -262,7 +262,7 @@ func (s *CommandServer) ResetNetwork() {
|
||||
if instance == nil || instance.Box() == nil {
|
||||
return
|
||||
}
|
||||
instance.Box().Network().ResetNetwork()
|
||||
instance.Box().Network().ResetNetwork(context.Background())
|
||||
}
|
||||
|
||||
func (s *CommandServer) UpdateWIFIState() {
|
||||
@@ -270,7 +270,7 @@ func (s *CommandServer) UpdateWIFIState() {
|
||||
if instance == nil || instance.Box() == nil {
|
||||
return
|
||||
}
|
||||
instance.Box().Network().UpdateWIFIState()
|
||||
instance.Box().Network().UpdateWIFIState(context.Background())
|
||||
}
|
||||
|
||||
type platformHandler CommandServer
|
||||
|
||||
Reference in New Issue
Block a user