summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2014-10-20 21:04:50 +0200
committermathieui <mathieui@mathieui.net>2014-10-20 21:21:06 +0200
commitb44dae8fae4884387d4d149a17033b261c940dea (patch)
tree24d1e67af120ec12c42029ff435ab4179c865269 /src
parentf9734cde5623aaf701e222b00d5eebdf7a152772 (diff)
downloadpoezio-b44dae8fae4884387d4d149a17033b261c940dea.tar.gz
poezio-b44dae8fae4884387d4d149a17033b261c940dea.tar.bz2
poezio-b44dae8fae4884387d4d149a17033b261c940dea.tar.xz
poezio-b44dae8fae4884387d4d149a17033b261c940dea.zip
If the whitespace_interval value set in the config is null or negative, don’t send any
Diffstat (limited to 'src')
-rw-r--r--src/connection.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/connection.py b/src/connection.py
index e6188e05..dc35dd94 100644
--- a/src/connection.py
+++ b/src/connection.py
@@ -71,7 +71,7 @@ class Connection(sleekxmpp.ClientXMPP):
if int(interval) > 0:
self.whitespace_keepalive_interval = int(interval)
else:
- self.whitespace_keepalive_interval = 300
+ self.whitespace_keepalive = False
self.register_plugin('xep_0004')
self.register_plugin('xep_0012')
self.register_plugin('xep_0030')