core: clear group content on deletion, break transaction to prevent error on Android, more logs (#892)

* core: log group deletion

* clear group content, break transaction, add logs
This commit is contained in:
Evgeny Poberezkin
2022-08-04 11:12:50 +01:00
committed by GitHub
parent 91baf9f362
commit 55adbb4692
5 changed files with 55 additions and 31 deletions
@@ -98,12 +98,13 @@ class SimplexApp: Application(), LifecycleEventObserver {
val inStream = receiver.inputStream
val inStreamReader = InputStreamReader(inStream)
val input = BufferedReader(inStreamReader)
Log.d(TAG, "starting receiver loop")
while (true) {
val line = input.readLine() ?: break
Log.w("$TAG (stdout/stderr)", line)
logbuffer.add(line)
}
Log.w(TAG, "exited receiver loop")
}
}