Changeset

10940:18e4e446a76c

util.adminstream: Prevent closure on read timeout
author Kim Alvefur <zash@zash.se>
date Thu, 18 Jun 2020 17:54:28 +0200
parents 10939:99ae457c2459
children 10941:642773f3073b
files util/adminstream.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/util/adminstream.lua	Thu Jun 18 16:42:22 2020 +0100
+++ b/util/adminstream.lua	Thu Jun 18 17:54:28 2020 +0200
@@ -249,7 +249,7 @@
 	end
 
 	function listeners.onreadtimeout(conn)
-		conn:send(" ");
+		return conn:send(" ");
 	end
 
 	return {