# HG changeset patch # User Kim Alvefur # Date 1448208043 -3600 # Node ID 03bc9e197fcc9a545de08de9ba4a40db06944e63 # Parent 02717098cbba8fd273f56fc82b911d73829b9b93 net.server_event: Return event handle from add_task so it can be closed by eg util.timer diff -r 02717098cbba -r 03bc9e197fcc net/server_event.lua --- a/net/server_event.lua Sun Nov 22 15:52:10 2015 +0000 +++ b/net/server_event.lua Sun Nov 22 17:00:43 2015 +0100 @@ -807,6 +807,7 @@ end end , delay); + return event_handle; end return {