mirror of
https://github.com/permissionlesstech/bitchat-android.git
synced 2026-11-29 08:27:15 +00:00
handleUnexpectedStop never told the controller, so it kept reporting running and every restart request did nothing. Aware stayed down until an outside start such as an Activity resume. Clear the controller's running state while keeping the instance for reuse, and fix what same-instance restart exposed: orphaning on a deferred start, republishing after stop(), recovery cleanup reading the coroutine's isActive, duplicate background loops, and unbounded attach retries.