We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43337ea commit 3ce6604Copy full SHA for 3ce6604
core/src/main/golang/native/tunnel/suspend.go
@@ -1,7 +1,9 @@
1
package tunnel
2
3
-import "github.com/metacubex/mihomo/adapter/provider"
4
-
5
func Suspend(s bool) {
6
- provider.Suspend(s)
+ // cause by ACTION_SCREEN_OFF/ACTION_SCREEN_ON,
+ // but we don't know what should do so just ignored.
+ //
7
+ // WARNING: don't call core's Tunnel.OnSuspend/OnRunning at here,
8
+ // this will cause the core to stop processing new incoming connections when the screen is locked.
9
}
0 commit comments