Skip to content
This repository was archived by the owner on Jun 28, 2020. It is now read-only.

Commit dbccee4

Browse files
committed
Disallow mysqloo wrapper to connect if already connected
1 parent d70b9dc commit dbccee4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mysqloo.lua

+2
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ function mysqloo.connect(host, username, password, database, port, sockt, flags)
4242
end
4343

4444
function gofuckurself:connect()
45+
if self.db:IsConnected() then return end -- prevent retardation
46+
4547
local success, err = self.db:Connect()
4648

4749
if not success then

0 commit comments

Comments
 (0)