Files
flamenet-messenger-android/app/src
Paul HittandClaude Opus 5 51e9f01323 Do not stop reading the inbox while a call is up
The handover stops this app's polling loop when the screen goes away,
because the background service takes over. That is right for messages
and wrong for a call already in progress: the loop is the only thing
that routes `call-end` into the manager owning the call screen. The
service polls too, but it turns offers into notifications and knows
nothing about a call that is already up.

So a call ended by the far end while this app was off screen had nowhere
to land. The screen stayed, still offering to answer, until the dial
guard gave up forty-five seconds later. Seen on a device: a call placed
at 13:04:13, no `call-end` ever logged, ICE closed at 13:04:58.

Polling now refuses to pause while a call is dialling, ringing,
connecting or active.

And a backstop for when the signal is genuinely lost. ICE DISCONNECTED
was a no-op, so nothing noticed a far end that simply vanished. It now
arms an eight second grace, cancelled if the connection recovers,
because WebRTC blips are ordinary. A call whose audio has stopped is
over whatever the signalling says.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-10 14:46:51 -04:00
..