Commit 9f507c3
committed
fix: Clear delivery candidates on cancel
This change ensures that when the `ChannelDeliveryReporter` is canceled, any pending delivery candidates are cleared.
The `cancel` method now clears the `_deliveryCandidates` list in addition to canceling the throttled reporting function. This prevents a potential memory leak and ensures a clean state when delivery reporting is stopped.1 parent 696bce0 commit 9f507c3
File tree
1 file changed
+4
-1
lines changed- packages/stream_chat/lib/src/client
1 file changed
+4
-1
lines changedLines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
197 | 200 | | |
0 commit comments