# HG changeset patch # User Kim Alvefur # Date 1470595894 -7200 # Node ID e69df80933875aeb574a9bb5f2aee39734c0b945 # Parent 366964dbddb1f363b742648d06aad9645129f15d mod_c2s: Don't try to keep alive sessions where the stream is not (yet) open diff -r 366964dbddb1 -r e69df8093387 plugins/mod_c2s.lua --- 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)