comparison net/server_event.lua @ 8751:469f78fe1c3e

net.server_event: Don't close servers if just quitting the loop once
author Matthew Wild <mwild1@gmail.com>
date Tue, 10 Apr 2018 20:41:03 +0100
parents 41c959c5c84b
children 53178b6ba589
comparison
equal deleted inserted replaced
8750:7ae09468ad92 8751:469f78fe1c3e
772 end 772 end
773 773
774 local function setquitting(yes) 774 local function setquitting(yes)
775 if yes then 775 if yes then
776 -- Quit now 776 -- Quit now
777 closeallservers(); 777 if yes ~= "once" then
778 closeallservers();
779 end
778 base:loopexit(); 780 base:loopexit();
779 end 781 end
780 end 782 end
781 783
782 local function get_backend() 784 local function get_backend()