mod_c2s: Just destroy the session when it has no connection (see #641)

This commit is contained in:
Kim Alvefur 2016-04-03 15:18:21 +02:00
parent ae72fdd667
commit 4308f867bb

View file

@ -175,6 +175,9 @@ local function session_close(session, reason)
sm_destroy_session(session, reason);
conn:close();
end
else
local reason = (reason and (reason.name or reason.text or reason.condition)) or reason;
sm_destroy_session(session, reason);
end
end