mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-11-27 11:09:56 +00:00
Avoid infinite loop on version result
We need to check if type="get". otherwise we will send our version when we will receive the version of the remote entity, and thus going in an infinite loop.
This commit is contained in:
parent
45ccb31356
commit
5635265203
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ class xep_0092(base_plugin):
|
|||
|
||||
self.xmpp.register_handler(
|
||||
Callback('Software Version',
|
||||
StanzaPath('iq/software_version'),
|
||||
StanzaPath('iq@=get/software_version'),
|
||||
self._handle_version))
|
||||
|
||||
register_stanza_plugin(Iq, Version)
|
||||
|
|
Loading…
Reference in a new issue