浏览代码

Fix close plugin

世界 3 年之前
父节点
当前提交
05cd4e4d1c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/src/main/java/io/nekohasekai/sagernet/bg/GuardedProcessPool.kt

+ 1 - 1
app/src/main/java/io/nekohasekai/sagernet/bg/GuardedProcessPool.kt

@@ -62,7 +62,7 @@ class GuardedProcessPool(private val onFatal: suspend (IOException) -> Unit) : C
 
         @DelicateCoroutinesApi
         suspend fun looper(onRestartCallback: (suspend () -> Unit)?) {
-            var running = false
+            var running = true
             val cmdName = File(cmd.first()).nameWithoutExtension
             val exitChannel = Channel<Int>()
             try {