Commit 89b3874
committed
fix(conversations): stop a cancelled catch-up from running on
The per-room message catch-up wraps each room in runCatching, which also
catches the CancellationException raised when the sync is stopped. The
failure was logged and the loop moved on to the next room, so a sync that
had been cancelled kept issuing requests for every remaining room.
Rethrow the cancellation so the loop ends with the scope that owns it.
Assisted-by: Claude Code:claude-opus-5
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>1 parent 90dc05e commit 89b3874
1 file changed
Lines changed: 4 additions & 1 deletion
File tree
- app/src/main/java/com/nextcloud/talk/conversationlist/data/network
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
336 | 336 | | |
337 | 337 | | |
338 | 338 | | |
339 | | - | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
340 | 343 | | |
341 | 344 | | |
342 | 345 | | |
| |||
0 commit comments