Skip to content

Commit 71ae430

Browse files
Reset garbage collection handler.
1 parent e4030cf commit 71ae430

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mysql/init.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ end
5757

5858
local function conn_put(conn)
5959
local mysqlconn = conn.conn
60-
--erase conn for gc
61-
conn.conn = nil
60+
ffi.gc(conn.__gc_hook, nil)
6261
if not conn.queue:get() then
6362
conn.usable = false
6463
return nil

0 commit comments

Comments
 (0)