aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2015-11-22 17:00:43 +0100
committerKim Alvefur <zash@zash.se>2015-11-22 17:00:43 +0100
commit21485092f08a685b1ff82f237635cb2fae06524d (patch)
tree56f8aaf41d2ef9e5c29a8a2fd1bc595f2d3aff15 /net
parentc9af381fcea7a38807fb51685157798add05ec61 (diff)
downloadprosody-21485092f08a685b1ff82f237635cb2fae06524d.tar.gz
prosody-21485092f08a685b1ff82f237635cb2fae06524d.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.lua1
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 {