aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-07-30 18:50:46 +0100
committerMatthew Wild <mwild1@gmail.com>2012-07-30 18:50:46 +0100
commitabbff817a971616372117425e81e22d0e4848eb7 (patch)
tree1441ff4f0cb13e3236f875afa03bbb37ddb0b7cd
parent7d6a3f2438b72078d6d5ffad8f6f4ed41e144136 (diff)
downloadprosody-abbff817a971616372117425e81e22d0e4848eb7.tar.gz
prosody-abbff817a971616372117425e81e22d0e4848eb7.zip
mod_storage_sql: Return connection from connect even if already connected (thanks IRON)
-rw-r--r--plugins/mod_storage_sql.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_storage_sql.lua b/plugins/mod_storage_sql.lua
index c20e4473..ea25c90b 100644
--- a/plugins/mod_storage_sql.lua
+++ b/plugins/mod_storage_sql.lua
@@ -79,8 +79,8 @@ local function connect()
connection = dbh;
connections[dburi] = dbh;
- return connection;
end
+ return connection;
end
local function create_table()