diff options
author | Kim Alvefur <zash@zash.se> | 2015-11-22 17:00:43 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2015-11-22 17:00:43 +0100 |
commit | 21485092f08a685b1ff82f237635cb2fae06524d (patch) | |
tree | 56f8aaf41d2ef9e5c29a8a2fd1bc595f2d3aff15 | |
parent | c9af381fcea7a38807fb51685157798add05ec61 (diff) | |
download | prosody-21485092f08a685b1ff82f237635cb2fae06524d.tar.gz prosody-21485092f08a685b1ff82f237635cb2fae06524d.zip |
net.server_event: Return event handle from add_task so it can be closed by eg util.timer
-rw-r--r-- | net/server_event.lua | 1 |
1 files changed, 1 insertions, 0 deletions
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 { |