Software /
code /
prosody
Changeset
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 |
parents | 7539:366964dbddb1 |
children | 7541:1d3f9da189b5 |
files | plugins/mod_c2s.lua |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
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)