Commit 6d92cdf5 authored by nanahira's avatar nanahira

fix cardReader dispose

parent eb42b0ce
Pipeline #43314 failed with stages
in 36 seconds
......@@ -219,7 +219,16 @@ export class Room {
]);
}
private finalizors: RoomFinalizor[] = [() => this.disposeOcgcore()];
private finalizors: RoomFinalizor[] = [
() => this.disposeOcgcore(),
() => {
if (this._cardReader) {
try {
this._cardReader.finalize?.();
} catch (e) {}
}
},
];
addFinalizor(finalizor: RoomFinalizor, atEnd = false) {
if (atEnd) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment