fix(gui): add missing sync in clean task at search dialog close (#2363)

This commit is contained in:
Skylot
2024-12-21 19:44:15 +00:00
parent fe0ab5ebf8
commit 73966fda89
3 changed files with 20 additions and 7 deletions
@@ -456,13 +456,15 @@ public class ClassNode extends NotificationAttrNode
if (state == NOT_LOADED) {
return;
}
methods.forEach(MethodNode::unload);
innerClasses.forEach(ClassNode::unload);
fields.forEach(FieldNode::unload);
unloadAttributes();
setState(NOT_LOADED);
this.loadStage = LoadStage.NONE;
this.smali = null;
synchronized (clsInfo) { // decompilation sync
methods.forEach(MethodNode::unload);
innerClasses.forEach(ClassNode::unload);
fields.forEach(FieldNode::unload);
unloadAttributes();
setState(NOT_LOADED);
this.loadStage = LoadStage.NONE;
this.smali = null;
}
}
private void buildCache() {