diff options
author | pixel <pixel> | 2008-08-13 09:39:54 +0000 |
---|---|---|
committer | pixel <pixel> | 2008-08-13 09:39:54 +0000 |
commit | 441613bf23533f272722d88b161328abe2a0993d (patch) | |
tree | e59f08796da1ad024029a42d32600f8db63514d1 /src/plugin-luaconfigfiles.cc | |
parent | 068c558dc1e915e9a20eb6c71b8a50621a8e184c (diff) |
Adding double-loading locks
Diffstat (limited to 'src/plugin-luaconfigfiles.cc')
-rw-r--r-- | src/plugin-luaconfigfiles.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugin-luaconfigfiles.cc b/src/plugin-luaconfigfiles.cc index 196fed1..32f6130 100644 --- a/src/plugin-luaconfigfiles.cc +++ b/src/plugin-luaconfigfiles.cc @@ -7,6 +7,9 @@ #endif static void _init_plugin(Lua * L) { + static bool done = false; + if (done) return; + done = true; LuaConfigFile::pushstatics(L); } |