Check cancellation when updating imports recursively
For winapi, this takes a lot of CPU time without doing queries and causes the main event loop to stall on cancellation.
This commit is contained in:
parent
760ee8173c
commit
8baa2b727d
@ -573,6 +573,7 @@ fn update(
|
||||
vis: Visibility,
|
||||
import_type: ImportType,
|
||||
) {
|
||||
self.db.check_canceled();
|
||||
self.update_recursive(module_id, resolutions, vis, import_type, 0)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user