# HG changeset patch # User Kim Alvefur # Date 1459637753 -7200 # Node ID aa24d49c47ef59a62ee2ef8addf71fd7ad167136 # Parent bb4a2e4b7ba7309e3c42160fc56e4bde3a575ce7 mod_presence_cache: Only check set set is empty if it exists diff -r bb4a2e4b7ba7 -r aa24d49c47ef mod_presence_cache/mod_presence_cache.lua --- a/mod_presence_cache/mod_presence_cache.lua Sun Apr 03 00:37:11 2016 +0200 +++ b/mod_presence_cache/mod_presence_cache.lua Sun Apr 03 00:55:53 2016 +0200 @@ -16,9 +16,9 @@ if jids then jids[full_jid] = nil; - end - if next(jids) == nil then - bare_cache[bare_cache_key] = nil; + if next(jids) == nil then + bare_cache[bare_cache_key] = nil; + end end end