diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-07-18 18:49:54 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-07-18 18:49:54 +0100 |
commit | 741a5cf67bacc08629d548bb72531b6644369d93 (patch) | |
tree | 4ce78a17e12223b846c611dec942981a2e3edf06 | |
parent | 331d09deb3ba434b9ae73360f6e97f44a110a0cd (diff) | |
download | prosody-741a5cf67bacc08629d548bb72531b6644369d93.tar.gz prosody-741a5cf67bacc08629d548bb72531b6644369d93.zip |
xmppclient_listener: Use error text as disconnect reason if there is any
-rw-r--r-- | net/xmppclient_listener.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/xmppclient_listener.lua b/net/xmppclient_listener.lua index 35838692..cc65ff75 100644 --- a/net/xmppclient_listener.lua +++ b/net/xmppclient_listener.lua @@ -95,7 +95,7 @@ local function session_close(session, reason) end session.send("</stream:stream>"); session.conn.close(); - xmppclient.disconnect(session.conn, (reason and reason.condition) or reason or "session closed"); + xmppclient.disconnect(session.conn, (reason and (reason.text or reason.condition)) or reason or "session closed"); end end |