mirror of
https://github.com/MetaCubeX/ClashMetaForAndroid.git
synced 2024-11-16 13:42:18 +08:00
don't call provider.Suspend
This commit is contained in:
parent
43337eacd2
commit
3ce66040b3
|
@ -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.
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user