diff --git a/core/src/main/golang/native/tunnel/suspend.go b/core/src/main/golang/native/tunnel/suspend.go index 66db89bf..8926eb23 100644 --- a/core/src/main/golang/native/tunnel/suspend.go +++ b/core/src/main/golang/native/tunnel/suspend.go @@ -1,7 +1,9 @@ package tunnel -import "github.com/metacubex/mihomo/adapter/provider" - func Suspend(s bool) { - provider.Suspend(s) + // cause by ACTION_SCREEN_OFF/ACTION_SCREEN_ON, + // but we don't know what should do so just ignored. + // + // WARNING: don't call core's Tunnel.OnSuspend/OnRunning at here, + // this will cause the core to stop processing new incoming connections when the screen is locked. }