mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-06-14 22:55:12 +10:00
fix: cancel persist timer on dispose to prevent post-dispose writes
This commit is contained in:
@@ -213,6 +213,12 @@ class TimeoutPredictionService extends ChangeNotifier {
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
_persistTimer?.cancel();
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
void _rebuildContactStats() {
|
||||
_contactStats.clear();
|
||||
for (final obs in _observations) {
|
||||
|
||||
Reference in New Issue
Block a user