Files
rustdesk/flutter
Muad'Dib 152c5c71b1 fix(android): close session on dispose to prevent reconnect wedge (#15143)
RemotePage.dispose() only reaches sessionClose at the tail of gFFI.close(),
behind several awaits (canvas save, image update, the enable_soft_keyboard
platform call). If the app is backgrounded while the page is disposing,
dispose can be suspended before that runs, so the session is never torn down.
The next reconnect re-attaches to the leaked session (mobile reuses a constant
sessionId) and is stuck on "Connecting..." forever while the orphaned io_loop
keeps streaming.

Dispatch sessionClose at the start of dispose so teardown happens synchronously
on route pop, before backgrounding can interrupt it. The sessionClose in
gFFI.close() becomes a no-op once the session is already removed.

Fixes #15060

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-01 10:24:53 +08:00
..
2026-04-15 14:39:46 +08:00
2022-05-12 16:50:30 +08:00
2024-03-22 13:16:37 +08:00
2022-05-23 16:24:56 +08:00
2026-05-26 11:45:15 +08:00
2025-05-11 01:15:29 +08:00
2026-05-26 11:45:15 +08:00
2026-05-26 11:45:15 +08:00
2026-05-26 11:45:15 +08:00
2026-05-26 11:45:15 +08:00
2026-05-26 11:45:15 +08:00
2026-05-26 11:45:15 +08:00
2024-01-06 11:11:35 +08:00
2026-05-26 11:45:15 +08:00

flutter_hbb

A new Flutter project.

Getting Started

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter development, view the online documentation, which offers tutorials, samples and guidance on mobile development, and a full API reference.