Mercurial > prosody-modules
changeset 891:e089160c424b
mod_smacks: 'reason' parameter of session:close() changed to make nil and false mean 'graceful close' in 9da430b69f13
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 03 Jan 2013 00:34:30 +0100 |
parents | 7ac1b8a799be |
children | 148865199003 |
files | mod_smacks/mod_smacks.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_smacks/mod_smacks.lua Sun Dec 23 19:36:31 2012 +0100 +++ b/mod_smacks/mod_smacks.lua Thu Jan 03 00:34:30 2013 +0100 @@ -203,7 +203,7 @@ module:hook("pre-resource-unbind", function (event) local session, err = event.session, event.error; - if session.smacks and err ~= "session closed" then + if session.smacks and err then if not session.resumption_token then local queue = session.outgoing_stanza_queue; if #queue > 0 then