Comparison

init.lua @ 424:eaaaf4495e06

verse: Ensure verse.quit() only quits the loop once
author Matthew Wild <mwild1@gmail.com>
date Mon, 17 Sep 2018 13:19:54 +0100
parent 417:d46a502955c0
child 444:12c1be0044c6
comparison
equal deleted inserted replaced
423:e98cef597393 424:eaaaf4495e06
95 function verse.step() 95 function verse.step()
96 return xpcall(server.step, error_handler); 96 return xpcall(server.step, error_handler);
97 end 97 end
98 98
99 function verse.quit() 99 function verse.quit()
100 return server.setquitting(true); 100 return server.setquitting("once");
101 end 101 end
102 102
103 function stream:listen(host, port) 103 function stream:listen(host, port)
104 host = host or "localhost"; 104 host = host or "localhost";
105 port = port or 0; 105 port = port or 0;