Changeset

12789:517b5702c5a1

Merge 0.12->trunk
author Kim Alvefur <zash@zash.se>
date Mon, 24 Oct 2022 15:25:12 +0200
parents 12786:5d4957c8a972 (current diff) 12788:3835c397b129 (diff)
children 12791:4f69423603f2
files plugins/mod_admin_shell.lua
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_admin_shell.lua	Thu Oct 20 17:37:33 2022 +0200
+++ b/plugins/mod_admin_shell.lua	Mon Oct 24 15:25:12 2022 +0200
@@ -780,7 +780,11 @@
 		width = 5;
 		align = "right";
 		key = "conn";
-		mapper = function(conn) return conn:serverport(); end;
+		mapper = function(conn)
+			if conn then
+				return conn:serverport();
+			end
+		end;
 	};
 	dir = {
 		title = "Dir";