Comparison

net/server_epoll.lua @ 7796:12609aee3b3b

server_epoll: Handle the argument to setquitting like server_select
author Kim Alvefur <zash@zash.se>
date Sun, 01 Jan 2017 19:33:38 +0100
parent 7795:03081bd5c5bb
child 7797:d0c32d86724f
comparison
equal deleted inserted replaced
7795:03081bd5c5bb 7796:12609aee3b3b
610 end 610 end
611 611
612 local quitting = nil; 612 local quitting = nil;
613 613
614 -- Signal main loop about shutdown via above upvalue 614 -- Signal main loop about shutdown via above upvalue
615 local function setquitting() 615 local function setquitting(quit)
616 quitting = "quitting"; 616 if quit then
617 quitting = "quitting";
618 else
619 quitting = nil;
620 end
617 end 621 end
618 622
619 -- Main loop 623 -- Main loop
620 local function loop(once) 624 local function loop(once)
621 repeat 625 repeat