aboutsummaryrefslogtreecommitdiffstats
path: root/util/adminstream.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-06-18 17:54:28 +0200
committerKim Alvefur <zash@zash.se>2020-06-18 17:54:28 +0200
commit15227ecbc62d26707f37cbb82f5ee7c0f845442a (patch)
tree5fc96d8903fb9f96fcdbe6eac35536aff4b9479e /util/adminstream.lua
parentf4805838390ce2f2127e70fac6f18d0ef7867c7d (diff)
downloadprosody-15227ecbc62d26707f37cbb82f5ee7c0f845442a.tar.gz
prosody-15227ecbc62d26707f37cbb82f5ee7c0f845442a.zip
util.adminstream: Prevent closure on read timeout
Diffstat (limited to 'util/adminstream.lua')
-rw-r--r--util/adminstream.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/adminstream.lua b/util/adminstream.lua
index 782a6b0f..5b592e76 100644
--- a/util/adminstream.lua
+++ b/util/adminstream.lua
@@ -249,7 +249,7 @@ local function new_server(sessions, stanza_handler)
end
function listeners.onreadtimeout(conn)
- conn:send(" ");
+ return conn:send(" ");
end
return {