fix & optimize

- fix downloading page unbond size
- auto dispose isolate
This commit is contained in:
Junyuan Feng
2022-05-07 23:05:31 +08:00
parent d224ad8cf8
commit b0c3cd3834
7 changed files with 27 additions and 14 deletions

View File

@@ -24,6 +24,10 @@ class SftpDownloadWorker {
final worker = Worker();
final String? privateKey;
void dispose() {
worker.dispose();
}
/// Initiate the worker (new thread) and start listen from messages between
/// the threads
Future<void> init() async {