connlisteners: Localize tostring, fixes possible traceback when LuaSec not installed
authorMatthew Wild <mwild1@gmail.com>
Wed, 21 Oct 2009 13:59:54 +0100
changeset 2036 0f9c121713e1
parent 2035 b8c3dbf76a2e
child 2037 a919511c45ac
connlisteners: Localize tostring, fixes possible traceback when LuaSec not installed
net/connlisteners.lua
--- a/net/connlisteners.lua	Wed Oct 21 13:32:32 2009 +0500
+++ b/net/connlisteners.lua	Wed Oct 21 13:59:54 2009 +0100
@@ -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