mirror of
https://github.com/Suwayomi/Tachidesk.git
synced 2025-12-10 06:42:07 +01:00
Fix Deprecation Warnings (#1187)
This commit is contained in:
@@ -88,11 +88,12 @@ public final class QuickJs implements Closeable {
|
||||
context.getBindings("js").putMember(name, object);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void close() {
|
||||
this.context.leave();
|
||||
this.context.close();
|
||||
this.context = null;
|
||||
if (this.context != null) {
|
||||
this.context.leave();
|
||||
this.context.close();
|
||||
this.context = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user