Fix bufferedReaders not closed

This commit is contained in:
Mygod
2021-02-02 03:03:50 +08:00
parent 8c0aef4446
commit a1d86e4929
4 changed files with 4 additions and 6 deletions

View File

@@ -124,7 +124,7 @@ class ProcessListener(private val terminateRegex: Regex,
@Parcelize
class ReadArp : RootCommand<ParcelableString> {
override suspend fun execute() = withContext(Dispatchers.IO) {
ParcelableString(File("/proc/net/arp").bufferedReader().readText())
ParcelableString(File("/proc/net/arp").readText())
}
}