aboutsummaryrefslogtreecommitdiffstats
path: root/net/server_event.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2011-10-14 00:46:29 +0500
committerWaqas Hussain <waqas20@gmail.com>2011-10-14 00:46:29 +0500
commita8fc120451d3bc0cef65e8576a2fa2ea8c5d5427 (patch)
treecc2c9f964813d6a3c6ce318f5021d29edc4855f7 /net/server_event.lua
parent309533f51398ae7cafd27becca54254998fb9acb (diff)
downloadprosody-a8fc120451d3bc0cef65e8576a2fa2ea8c5d5427.tar.gz
prosody-a8fc120451d3bc0cef65e8576a2fa2ea8c5d5427.zip
net.server_event, net.server_select: Fixed some global pollution.
Diffstat (limited to 'net/server_event.lua')
-rw-r--r--net/server_event.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/server_event.lua b/net/server_event.lua
index daf2de6a..f4745c34 100644
--- a/net/server_event.lua
+++ b/net/server_event.lua
@@ -827,14 +827,14 @@ local function setquitting(yes)
end
end
-function get_backend()
+local function get_backend()
return base:method();
end
-- We need to hold onto the events to stop them
-- being garbage-collected
local signal_events = {}; -- [signal_num] -> event object
-function hook_signal(signal_num, handler)
+local function hook_signal(signal_num, handler)
local function _handler(event)
local ret = handler();
if ret ~= false then -- Continue handling this signal?