aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/mod_admin_shell.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/mod_admin_shell.lua b/plugins/mod_admin_shell.lua
index 97464579..3eaa871a 100644
--- a/plugins/mod_admin_shell.lua
+++ b/plugins/mod_admin_shell.lua
@@ -780,7 +780,11 @@ available_columns = {
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";