mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 20:23:06 +00:00
bugfix: socket channel reconnect
This commit is contained in:
@@ -39,9 +39,7 @@ local client_meta = {
|
||||
|
||||
return "[mongo client : " .. self.host .. port_string .."]"
|
||||
end,
|
||||
__gc = function(self)
|
||||
self:disconnect()
|
||||
end
|
||||
-- DO NOT need disconnect, because channel will shutdown during gc
|
||||
}
|
||||
|
||||
local mongo_db = {}
|
||||
|
||||
Reference in New Issue
Block a user