From a031aaf2c0fcfde3e74a81b2b4eefc52ce0d965f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Tue, 23 Sep 2025 16:17:44 +0800 Subject: [PATCH] Do not reset network on sleep or wake --- experimental/libbox/service_pause.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/experimental/libbox/service_pause.go b/experimental/libbox/service_pause.go index 791684ec..9c888454 100644 --- a/experimental/libbox/service_pause.go +++ b/experimental/libbox/service_pause.go @@ -12,9 +12,7 @@ type iOSPauseFields struct { func (s *BoxService) Pause() { s.pauseManager.DevicePause() - if !C.IsIos { - s.instance.Router().ResetNetwork() - } else { + if C.IsIos { if s.endPauseTimer == nil { s.endPauseTimer = time.AfterFunc(time.Minute, s.pauseManager.DeviceWake) } else { @@ -26,7 +24,6 @@ func (s *BoxService) Pause() { func (s *BoxService) Wake() { if !C.IsIos { s.pauseManager.DeviceWake() - s.instance.Router().ResetNetwork() } }