Diff

plugins/mod_admin_telnet.lua @ 10044:4fd27023224a

mod_admin_telnet: Collect array from Bosh connections when appending to connection list Fixes #1356
author Michel Le Bihan <michel@lebihan.pl>
date Mon, 03 Jun 2019 20:51:15 +0200
parent 9989:026f9594f661
child 10067:598befab492e
line wrap: on
line diff
--- a/plugins/mod_admin_telnet.lua	Sat Jun 01 15:00:35 2019 +0200
+++ b/plugins/mod_admin_telnet.lua	Mon Jun 03 20:51:15 2019 +0200
@@ -597,7 +597,7 @@
 
 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