s2smanager: Make sure destroyed sessions have a sends2s method

This commit is contained in:
Kim Alvefur 2015-05-14 00:22:13 +02:00
parent ecb35aa0e9
commit a1856627f5

View file

@ -64,6 +64,7 @@ function retire_session(session, reason)
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