mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-04-20 22:13:48 +00:00
fix: cancel persist timer on dispose to prevent post-dispose writes
This commit is contained in:
parent
b336aedbc5
commit
fffcff3b74
1 changed files with 6 additions and 0 deletions
|
|
@ -213,6 +213,12 @@ class TimeoutPredictionService extends ChangeNotifier {
|
|||
}
|
||||
}
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
_persistTimer?.cancel();
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
void _rebuildContactStats() {
|
||||
_contactStats.clear();
|
||||
for (final obs in _observations) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue