Comparison

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
comparison
equal deleted inserted replaced
6928:02717098cbba 6929:03bc9e197fcc
805 elseif event_handle then 805 elseif event_handle then
806 return -1; 806 return -1;
807 end 807 end
808 end 808 end
809 , delay); 809 , delay);
810 return event_handle;
810 end 811 end
811 812
812 return { 813 return {
813 cfg = cfg, 814 cfg = cfg,
814 base = base, 815 base = base,