Comparison

net/server_event.lua @ 6856:489f4ae291bf

server_event: Remove unused argument [luacheck]
author Kim Alvefur <zash@zash.se>
date Fri, 25 Sep 2015 17:26:47 +0200
parent 6855:40236602ab5b
child 6858:d8f8c0b2fda8
comparison
equal deleted inserted replaced
6855:40236602ab5b 6856:489f4ae291bf
765 765
766 -- We need to hold onto the events to stop them 766 -- We need to hold onto the events to stop them
767 -- being garbage-collected 767 -- being garbage-collected
768 local signal_events = {}; -- [signal_num] -> event object 768 local signal_events = {}; -- [signal_num] -> event object
769 local function hook_signal(signal_num, handler) 769 local function hook_signal(signal_num, handler)
770 local function _handler(event) 770 local function _handler()
771 local ret = handler(); 771 local ret = handler();
772 if ret ~= false then -- Continue handling this signal? 772 if ret ~= false then -- Continue handling this signal?
773 return EV_SIGNAL; -- Yes 773 return EV_SIGNAL; -- Yes
774 end 774 end
775 return -1; -- Close this event 775 return -1; -- Close this event