From 21485092f08a685b1ff82f237635cb2fae06524d Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 22 Nov 2015 17:00:43 +0100 Subject: net.server_event: Return event handle from add_task so it can be closed by eg util.timer --- net/server_event.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'net') diff --git a/net/server_event.lua b/net/server_event.lua index 34cda026..9b1ffb25 100644 --- a/net/server_event.lua +++ b/net/server_event.lua @@ -807,6 +807,7 @@ local function add_task(delay, callback) end end , delay); + return event_handle; end return { -- cgit v1.2.3