aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichel Le Bihan <michel@lebihan.pl>2019-06-03 20:51:15 +0200
committerMichel Le Bihan <michel@lebihan.pl>2019-06-03 20:51:15 +0200
commit9a5a3fd0f10693e6cba2779095398614eb94e68c (patch)
treee3d5bb8803d6b3999056d4096e18de7b4973cbda
parentcd4878033fd3f3b6b7dd67d66f8f02423ee11b94 (diff)
downloadprosody-9a5a3fd0f10693e6cba2779095398614eb94e68c.tar.gz
prosody-9a5a3fd0f10693e6cba2779095398614eb94e68c.zip
mod_admin_telnet: Collect array from Bosh connections when appending to connection list
Fixes #1356
-rw-r--r--plugins/mod_admin_telnet.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_admin_telnet.lua b/plugins/mod_admin_telnet.lua
index 0fbd3ff9..fa03840b 100644
--- a/plugins/mod_admin_telnet.lua
+++ b/plugins/mod_admin_telnet.lua
@@ -597,7 +597,7 @@ end
local function show_c2s(callback)
local c2s = array.collect(values(module:shared"/*/c2s/sessions"));
- c2s:append(values(module:shared"/*/bosh/sessions"));
+ c2s:append(array.collect(values(module:shared"/*/bosh/sessions")));
c2s:sort(function(a, b)
if a.host == b.host then
if a.username == b.username then