# HG changeset patch # User Matthew Wild # Date 1247016453 -3600 # Node ID b5c59667a04c5106ecec89576d3ac4b4ba41b992 # Parent 4da0131a5ccbee67a567462bd01cde75ea8a2ce7 net.xmppclient_listener: Fix potential traceback when no reason is specified for closing a session diff -r 4da0131a5ccb -r b5c59667a04c net/xmppclient_listener.lua --- a/net/xmppclient_listener.lua Mon Jul 06 01:40:43 2009 +0500 +++ b/net/xmppclient_listener.lua Wed Jul 08 02:27:33 2009 +0100 @@ -95,7 +95,7 @@ end session.send(""); session.conn.close(); - xmppclient.disconnect(session.conn, reason.condition or reason or "session closed"); + xmppclient.disconnect(session.conn, (reason and reason.condition) or reason or "session closed"); end end