diff --git a/src/sql/mysql/MySQLConnection.zig b/src/sql/mysql/MySQLConnection.zig index 2854b1453f..97b5fe896c 100644 --- a/src/sql/mysql/MySQLConnection.zig +++ b/src/sql/mysql/MySQLConnection.zig @@ -370,11 +370,10 @@ pub fn failWithJSValue(this: *MySQLConnection, value: JSValue) void { defer { // we defer the refAndClose so the on_close will be called first before we reject the pending requests this.refAndClose(value); - this.updateHasPendingActivity(); this.deref(); } - this.setStatus(.failed); + this.status = .failed; const on_close = this.consumeOnCloseCallback(this.globalObject) orelse return;