Changeset

7452:d916703d5e18

s2smanager: Include a stub thread on destroyed sessions (thanks Link Mauve)
author Kim Alvefur <zash@zash.se>
date Thu, 09 Jun 2016 14:04:50 +0200
parents 7451:464a8a8de625
children 7456:76a8456cf1e2
files core/s2smanager.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/core/s2smanager.lua	Mon May 30 13:36:43 2016 +0200
+++ b/core/s2smanager.lua	Thu Jun 09 14:04:50 2016 +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.thread = { run = function (_, data) return session.data(data) end };
 	session.sends2s = session.send;
 	return setmetatable(session, resting_session);
 end