summaryrefslogtreecommitdiff
path: root/src/plugin-luasql.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugin-luasql.cc')
-rw-r--r--src/plugin-luasql.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugin-luasql.cc b/src/plugin-luasql.cc
index 19588fe..84350e7 100644
--- a/src/plugin-luasql.cc
+++ b/src/plugin-luasql.cc
@@ -7,6 +7,9 @@
#endif
static void _init_plugin(Lua * L) {
+ static bool done = false;
+ if (done) return;
+ done = true;
LuaSQLConnection::pushstatics(L);
}