net.server_select: Close all connections when quitting (and not just stepping), matches server_event
authorMatthew Wild <mwild1@gmail.com>
Sat, 02 Jan 2016 20:42:20 +0000
changeset 7044 aff786e7b4ce
parent 7043 bdcea2dd33b8
child 7045 20ac6972b9aa
child 7046 14bc5593b97e
net.server_select: Close all connections when quitting (and not just stepping), matches server_event
net/server_select.lua
--- a/net/server_select.lua	Sat Jan 02 20:40:34 2016 +0000
+++ b/net/server_select.lua	Sat Jan 02 20:42:20 2016 +0000
@@ -911,6 +911,7 @@
 		socket_sleep( _sleeptime )
 	until quitting;
 	if once and quitting == "once" then quitting = nil; return; end
+	closeall();
 	return "quitting"
 end