Software /
code /
prosody
Diff
plugins/mod_c2s.lua @ 7540:e69df8093387
mod_c2s: Don't try to keep alive sessions where the stream is not (yet) open
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 07 Aug 2016 20:51:34 +0200 |
parent | 7539:366964dbddb1 |
child | 7542:0f92dc8e8b88 |
child | 7662:946871f6e3c8 |
line wrap: on
line diff
--- a/plugins/mod_c2s.lua Sun Aug 07 20:50:56 2016 +0200 +++ b/plugins/mod_c2s.lua Sun Aug 07 20:51:34 2016 +0200 @@ -294,7 +294,10 @@ end local function keepalive(event) - return event.session.send(' '); + local session = event.session; + if not session.notopen then + return event.session.send(' '); + end end function listener.associate_session(conn, session)