Changeset

6691:c6c996410064

s2smanager: Make sure destroyed sessions have a sends2s method
author Kim Alvefur <zash@zash.se>
date Thu, 14 May 2015 00:22:13 +0200
parents 6684:53635a91c95c
children 6692:93eefa92527d 6741:bea3862b6bde
files core/s2smanager.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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