mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 07:14:28 +01:00
fix: mark sftp mission as completed when dispose
This commit is contained in:
@@ -23,14 +23,14 @@ class SftpProvider extends ChangeNotifier {
|
||||
@override
|
||||
void dispose() {
|
||||
for (final item in _status) {
|
||||
item.worker.dispose();
|
||||
item.dispose();
|
||||
}
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
void cancel(int id) {
|
||||
final idx = _status.indexWhere((element) => element.id == id);
|
||||
_status[idx].worker.dispose();
|
||||
_status[idx].dispose();
|
||||
_status.removeAt(idx);
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user