Skip to content

Commit

Permalink
fix crash
Browse files Browse the repository at this point in the history
  • Loading branch information
nift4 committed Jan 18, 2025
1 parent 172c9bb commit 41582c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/org/andbootmgr/app/util/Terminal.kt
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ fun TerminalWork(logFile: String? = null, action: suspend (TerminalList) -> Unit
val ctx = LocalContext.current.applicationContext
LaunchedEffect(Unit) {
val logDispatcher = Dispatchers.IO.limitedParallelism(1)
val log = logFile?.let { SuFileOutputStream.open(File(ctx.externalCacheDir, it)) }
val log = logFile?.let { SuFileOutputStream.open(File(ctx.externalCacheDirs.first(), it)) }
val s = BudgetCallbackList(CoroutineScope(logDispatcher), log)
StayAliveConnection(ctx, {
withContext(Dispatchers.Default) {
Expand Down

0 comments on commit 41582c9

Please sign in to comment.