From cab3f5abe5abcdcb10173c0dbc3a471eefb83cf5 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Wed, 11 Apr 2018 15:52:13 +0200 Subject: mod_pep_plus: Skip getting PEP service instance for sessions that have not touched PEP --- plugins/mod_pep_plus.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/mod_pep_plus.lua b/plugins/mod_pep_plus.lua index 083b96b1..fdc8cdbf 100644 --- a/plugins/mod_pep_plus.lua +++ b/plugins/mod_pep_plus.lua @@ -268,7 +268,6 @@ local function resend_last_item(jid, node, service) end local function update_subscriptions(recipient, service_name, nodes) - local service = get_pep_service(service_name); nodes = nodes or empty_set; local service_recipients = recipients[service_name]; @@ -286,6 +285,7 @@ local function update_subscriptions(recipient, service_name, nodes) return; end + local service = get_pep_service(service_name); for node in current - nodes do service:remove_subscription(node, recipient, recipient); end -- cgit v1.2.3