From 014168ff18ff0216c649ca687523ab96768a9b0d Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 4 Mar 2017 17:49:48 +0100 Subject: core: Split some very long lines [luacheck] --- core/sessionmanager.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'core/sessionmanager.lua') diff --git a/core/sessionmanager.lua b/core/sessionmanager.lua index 75e54b4f..c5b08098 100644 --- a/core/sessionmanager.lua +++ b/core/sessionmanager.lua @@ -76,7 +76,10 @@ local function retire_session(session) end local function destroy_session(session, err) - (session.log or log)("debug", "Destroying session for %s (%s@%s)%s", session.full_jid or "(unknown)", session.username or "(unknown)", session.host or "(unknown)", err and (": "..err) or ""); + (session.log or log)("debug", "Destroying session for %s (%s@%s)%s", + session.full_jid or "(unknown)", session.username or "(unknown)", + session.host or "(unknown)", err and (": "..err) or ""); + if session.destroyed then return; end -- Remove session/resource from user's session list -- cgit v1.2.3