mod_presence_cache: Fix traceback due to changes in trunk
authorKim Alvefur <zash@zash.se>
Mon, 09 Dec 2019 16:51:36 +0100
changeset 3764 830a01443a2f
parent 3763 57eb248f6dd3
child 3765 0ae28bf0c546
mod_presence_cache: Fix traceback due to changes in trunk Reason used to be a string and now it might be an util.error
mod_presence_cache/mod_presence_cache.lua
--- a/mod_presence_cache/mod_presence_cache.lua	Sun Dec 08 18:48:11 2019 +0000
+++ b/mod_presence_cache/mod_presence_cache.lua	Mon Dec 09 16:51:36 2019 +0100
@@ -103,7 +103,7 @@
 
 local function clear_cache_from_s2s(remote, reason)
 	if not remote then return end
-	if reason and reason:find("timeout") then return end -- Ignore connections closed for being idle
+	-- FIXME Ignore if connection closed for being idle
 
 	module:log("debug", "Dropping cached presence from host %s", remote);