Changeset

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
parents 7040:bdcea2dd33b8
children 7042:20ac6972b9aa 7043:14bc5593b97e
files net/server_select.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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