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 | 5cc2151af1a06d291e26ca4ae4574e45c2a04492 (patch) | |
tree | 56f8aaf41d2ef9e5c29a8a2fd1bc595f2d3aff15 /net | |
parent | 217d0135d1da5f00a8b21dcca8b61ff16dd126d0 (diff) | |
download | prosody-5cc2151af1a06d291e26ca4ae4574e45c2a04492.tar.gz prosody-5cc2151af1a06d291e26ca4ae4574e45c2a04492.zip |
net.server_event: Return event handle from add_task so it can be closed by eg util.timer
Diffstat (limited to 'net')
-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 { |