Diff

net/server_select.lua @ 7041:aff786e7b4ce

net.server_select: Close all connections when quitting (and not just stepping), matches server_event
author Matthew Wild <mwild1@gmail.com>
date Sat, 02 Jan 2016 20:42:20 +0000
parent 6819:ffb2b5e31456
child 7042:20ac6972b9aa
child 7043:14bc5593b97e
line wrap: on
line diff
--- 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