Update MySQLConnection.zig

This commit is contained in:
Jarred Sumner
2025-09-11 03:15:12 -07:00
parent 12c36a9852
commit 2f0307b3d6

View File

@@ -317,6 +317,7 @@ pub fn getConnected(this: *MySQLConnection, _: *jsc.JSGlobalObject) JSValue {
pub fn doClose(this: *MySQLConnection, globalObject: *jsc.JSGlobalObject, _: *jsc.CallFrame) bun.JSError!JSValue {
_ = globalObject;
this.disconnect();
this.poll_ref.disable();
this.write_buffer.clearAndFree(bun.default_allocator);
return .js_undefined;