Skip to content

Commit

Permalink
(agentxmpp) Fix restart of the agent when the subscribe subsitute is
Browse files Browse the repository at this point in the history
turned ON/OFF/ON

When the subscribe subsitute is turn off, the machine is not present
anymore in XMPP.

When it turns ON again, the machine is notified. It know that a
reinscription is needed

(cherry picked from commit 8236ab8)
  • Loading branch information
neoclust committed Mar 21, 2024
1 parent 45345d6 commit d1e6bfe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pulse_xmpp_agent/agentxmpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -1326,6 +1326,9 @@ def check_subscribe(self):
"Subscription [%s] status = %s"
% (self.sub_subscribe, self.presencectrlsubscribe)
)
else:
self.presencectrlsubscribe = "unavailable"
self.update_plugin()

def stabilized_start(self):
"""
Expand Down

0 comments on commit d1e6bfe

Please sign in to comment.