If the whitespace_interval value set in the config is null or negative, don’t send any

This commit is contained in:
mathieui 2014-10-20 21:04:50 +02:00
parent f9734cde56
commit b44dae8fae
No known key found for this signature in database
GPG key ID: C59F84CEEFD616E3

View file

@ -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')