don't call provider.Suspend

This commit is contained in:
wwqgtxx 2024-09-12 11:10:08 +08:00
parent 43337eacd2
commit 3ce66040b3

View File

@ -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.
}