If the whitespace_interval value set in the config is null or negative, don’t send any
This commit is contained in:
parent
f9734cde56
commit
b44dae8fae
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ class Connection(sleekxmpp.ClientXMPP):
|
||||||
if int(interval) > 0:
|
if int(interval) > 0:
|
||||||
self.whitespace_keepalive_interval = int(interval)
|
self.whitespace_keepalive_interval = int(interval)
|
||||||
else:
|
else:
|
||||||
self.whitespace_keepalive_interval = 300
|
self.whitespace_keepalive = False
|
||||||
self.register_plugin('xep_0004')
|
self.register_plugin('xep_0004')
|
||||||
self.register_plugin('xep_0012')
|
self.register_plugin('xep_0012')
|
||||||
self.register_plugin('xep_0030')
|
self.register_plugin('xep_0030')
|
||||||
|
|
Loading…
Reference in a new issue