Handle network update callbacks in background

This commit is contained in:
世界
2026-08-30 17:41:46 +08:00
parent cfddedb3da
commit 6720a27109
46 changed files with 382 additions and 134 deletions
+2 -2
View File
@@ -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