aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
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
commit6803af2094867292188d73a647b94e5fd5fa0da9 (patch)
tree1441ff4f0cb13e3236f875afa03bbb37ddb0b7cd /plugins
parentef580b637e68c5fd6ee649c3ea2c56e4393b3a1a (diff)
downloadprosody-6803af2094867292188d73a647b94e5fd5fa0da9.tar.gz
prosody-6803af2094867292188d73a647b94e5fd5fa0da9.zip
mod_storage_sql: Return connection from connect even if already connected (thanks IRON)
Diffstat (limited to 'plugins')
-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()