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