# HG changeset patch # User Kim Alvefur # Date 1431555733 -7200 # Node ID c6c99641006434c64a061a847b52fc08ba66f745 # Parent 53635a91c95cc9ee77887f85ffe88111872a26d0 s2smanager: Make sure destroyed sessions have a sends2s method diff -r 53635a91c95c -r c6c996410064 core/s2smanager.lua --- a/core/s2smanager.lua Wed May 13 21:56:22 2015 +0200 +++ b/core/s2smanager.lua Thu May 14 00:22:13 2015 +0200 @@ -64,6 +64,7 @@ function session.send(data) log("debug", "Discarding data sent to resting session: %s", tostring(data)); end function session.data(data) log("debug", "Discarding data received from resting session: %s", tostring(data)); end + session.sends2s = session.send; return setmetatable(session, resting_session); end