connlisteners: Localize tostring, fixes possible traceback when LuaSec not installed
authorMatthew Wild <mwild1@gmail.com>
Wed, 21 Oct 2009 12:59:54 +0000 (13:59 +0100)
committerMatthew Wild <mwild1@gmail.com>
Wed, 21 Oct 2009 12:59:54 +0000 (13:59 +0100)
net/connlisteners.lua

index ebb3cc18e2cec986ccfd888deacc83e777c35f36..932cd9cb53bb00a4670cf1a1a1676ee463910dd3 100644 (file)
@@ -11,6 +11,7 @@
 local listeners_dir = (CFG_SOURCEDIR or ".").."/net/";
 local server = require "net.server";
 local log = require "util.logger".init("connlisteners");
+local tostring = tostring;
 
 local dofile, pcall, error = 
        dofile, pcall, error