From fd5adf33d06749b124b2674f295826c2960d9995 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 14 May 2015 00:22:13 +0200 Subject: s2smanager: Make sure destroyed sessions have a sends2s method --- core/s2smanager.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'core/s2smanager.lua') diff --git a/core/s2smanager.lua b/core/s2smanager.lua index 06d3f2c9..fb5c4299 100644 --- a/core/s2smanager.lua +++ b/core/s2smanager.lua @@ -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 -- cgit v1.2.3