Commit 976c3e4b authored by Mygod's avatar Mygod

Remove redundant suspend modifiers

parent 64b78846
...@@ -92,7 +92,7 @@ class ProxyInstance(val profile: Profile, private val route: String = profile.ro ...@@ -92,7 +92,7 @@ class ProxyInstance(val profile: Profile, private val route: String = profile.ro
* Sensitive shadowsocks configuration file requires extra protection. It may be stored in encrypted storage or * Sensitive shadowsocks configuration file requires extra protection. It may be stored in encrypted storage or
* device storage, depending on which is currently available. * device storage, depending on which is currently available.
*/ */
suspend fun start(service: BaseService.Interface, stat: File, configFile: File, extraFlag: String? = null) { fun start(service: BaseService.Interface, stat: File, configFile: File, extraFlag: String? = null) {
trafficMonitor = TrafficMonitor(stat) trafficMonitor = TrafficMonitor(stat)
this.configFile = configFile this.configFile = configFile
......
...@@ -36,7 +36,7 @@ class TransproxyService : Service(), LocalDnsService.Interface { ...@@ -36,7 +36,7 @@ class TransproxyService : Service(), LocalDnsService.Interface {
override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int = override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int =
super<LocalDnsService.Interface>.onStartCommand(intent, flags, startId) super<LocalDnsService.Interface>.onStartCommand(intent, flags, startId)
private suspend fun startDNSTunnel() { private fun startDNSTunnel() {
val proxy = data.proxy!! val proxy = data.proxy!!
val cmd = arrayListOf(File(applicationInfo.nativeLibraryDir, Executable.SS_TUNNEL).absolutePath, val cmd = arrayListOf(File(applicationInfo.nativeLibraryDir, Executable.SS_TUNNEL).absolutePath,
"-t", "10", "-t", "10",
...@@ -50,7 +50,7 @@ class TransproxyService : Service(), LocalDnsService.Interface { ...@@ -50,7 +50,7 @@ class TransproxyService : Service(), LocalDnsService.Interface {
data.processes!!.start(cmd) data.processes!!.start(cmd)
} }
private suspend fun startRedsocksDaemon() { private fun startRedsocksDaemon() {
File(Core.deviceStorage.noBackupFilesDir, "redsocks.conf").writeText("""base { File(Core.deviceStorage.noBackupFilesDir, "redsocks.conf").writeText("""base {
log_debug = off; log_debug = off;
log_info = off; log_info = off;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment