Skip to content

Commit 3ce6604

Browse files
committed
don't call provider.Suspend
1 parent 43337ea commit 3ce6604

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
package tunnel
22

3-
import "github.com/metacubex/mihomo/adapter/provider"
4-
53
func Suspend(s bool) {
6-
provider.Suspend(s)
4+
// cause by ACTION_SCREEN_OFF/ACTION_SCREEN_ON,
5+
// but we don't know what should do so just ignored.
6+
//
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.
79
}

0 commit comments

Comments
 (0)