mirror of
https://github.com/Monkopedia/rouse-context.git
synced 2026-12-03 12:44:55 +00:00
Observer coroutines (state, sessions, wakelock, idle timeout) were launched in onStartCommand, which runs on every wake broadcast. Duplicate collectors caused conflicting reconnect attempts: the state observer saw DISCONNECTED during a refresh disconnect and raced with the explicit reconnect. Move observers to onCreate (runs once) and mark refresh disconnects as intentional so the state observer does not trigger spurious reconnect loops. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| src | ||
| build.gradle.kts | ||