mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-04-19 17:16:08 +08:00
fix: logger catch
This commit is contained in:
parent
b279ad5ba8
commit
425ac1b684
@ -186,7 +186,11 @@ export class Logger {
|
||||
this.disable();
|
||||
this.catching = true;
|
||||
const ret = fn();
|
||||
this.catching = false;
|
||||
if (this.catchStack.length === 0) {
|
||||
this.catching = false;
|
||||
} else {
|
||||
this.catching = true;
|
||||
}
|
||||
if (before) this.enable();
|
||||
|
||||
this.catchStack.pop();
|
||||
|
Loading…
Reference in New Issue
Block a user