Software /
code /
prosody
Diff
plugins/mod_pep_plus.lua @ 8753:d6373a378b73
mod_pep_plus: Skip getting PEP service instance for sessions that have not touched PEP
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 11 Apr 2018 15:52:13 +0200 |
parent | 8728:41c959c5c84b |
child | 8895:d00ea07de9a0 |
line wrap: on
line diff
--- a/plugins/mod_pep_plus.lua Wed Apr 11 13:24:37 2018 +0100 +++ b/plugins/mod_pep_plus.lua Wed Apr 11 15:52:13 2018 +0200 @@ -268,7 +268,6 @@ 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 @@ return; end + local service = get_pep_service(service_name); for node in current - nodes do service:remove_subscription(node, recipient, recipient); end