Diff

net/server_event.lua @ 6929:03bc9e197fcc

net.server_event: Return event handle from add_task so it can be closed by eg util.timer
author Kim Alvefur <zash@zash.se>
date Sun, 22 Nov 2015 17:00:43 +0100
parent 6862:7a81fb23de5d
child 7042:20ac6972b9aa
line wrap: on
line diff
--- 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 {