mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-18 12:28:40 +00:00
fix(ctl): a full disk no longer crashes the app when an agent call cannot write its answer (#2325)
This commit is contained in:
1 parent
bf434b2652
commit
b837611efe
1 file changed
+2
@@ -31,6 +31,8 @@ class AgentCallReceiver : BroadcastReceiver() {
|
||||
val dir = File(context.getExternalFilesDir(null), "agent-calls").apply { mkdirs() }
|
||||
File(dir, "$id.json.part").writeText(json)
|
||||
File(dir, "$id.json.part").renameTo(File(dir, "$id.json"))
|
||||
} catch (e: Exception) {
|
||||
android.util.Log.w("AgentCallReceiver", "could not write the answer to $method: ${e.message}")
|
||||
} finally {
|
||||
pending.finish()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user