Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits:
ba07eccc by Philipp Hörist at 2019-01-04T00:21:16Z
Dont print log message on valid show
- - - - -
1 changed file:
- nbxmpp/modules/presence.py
Changes:
=====================================
nbxmpp/modules/presence.py
=====================================
@@ -84,6 +84,9 @@ class BasePresence:
@staticmethod
def _parse_show(stanza):
+ show = stanza.getShow()
+ if show is None:
+ return PresenceShow.ONLINE
try:
return PresenceShow(stanza.getShow())
except ValueError:
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/commit/ba07eccc070bdecb926ec600fa…
--
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/commit/ba07eccc070bdecb926ec600fa…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits:
48c04eb9 by Philipp Hörist at 2019-01-04T00:16:57Z
Raise version to 0.9.90.3
- - - - -
1 changed file:
- nbxmpp/__init__.py
Changes:
=====================================
nbxmpp/__init__.py
=====================================
@@ -15,4 +15,4 @@ from .client_nb import NonBlockingClient
from .plugin import PlugIn
from .smacks import Smacks
-__version__ = "0.9.90.2"
+__version__ = "0.9.90.3"
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/commit/48c04eb978b4967b360b7b5a1b…
--
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/commit/48c04eb978b4967b360b7b5a1b…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
5fd1e7b4 by Philipp Hörist at 2019-01-03T23:49:59Z
Remove ping timeout on disconnect handler
- - - - -
2 changed files:
- gajim/common/connection.py
- gajim/common/modules/ping.py
Changes:
=====================================
gajim/common/connection.py
=====================================
@@ -675,6 +675,7 @@ class Connection(CommonConnection, ConnectionHandlers):
def _disconnect(self):
log.info('Set state disconnected')
+ self.get_module('Ping').remove_timeout()
self.connected = 0
self.disable_reconnect_timer()
=====================================
gajim/common/modules/ping.py
=====================================
@@ -66,10 +66,8 @@ class Ping:
self.remove_timeout()
def _reconnect(self) -> None:
- if not app.config.get_per('accounts', self._account, 'active'):
- # Account may have been disabled
+ if not app.account_is_connected(self._account):
return
-
# We haven't got the pong in time, disco and reconnect
log.warning('No reply received for keepalive ping. Reconnecting...')
self._con.disconnect(immediately=True)
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/5fd1e7b4bfb61e6f983dfaa25a4de6b639…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/5fd1e7b4bfb61e6f983dfaa25a4de6b639…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits:
aa44a60c by Philipp Hörist at 2019-01-03T23:19:00Z
Fix tests
- - - - -
1 changed file:
- test/unit/test_xmpp_dispatcher_nb.py
Changes:
=====================================
test/unit/test_xmpp_dispatcher_nb.py
=====================================
@@ -47,17 +47,17 @@ class TestDispatcherNB(unittest.TestCase):
self.dispatcher.RegisterHandler('message', _got_message)
# should be able to parse a normal message
- self.dispatcher.ProcessNonBlocking('<message><body>hello</body></message>')
+ self.dispatcher.ProcessNonBlocking('<message from="test(a)test.at"><body>hello</body></message>')
self.assertEqual(1, len(msgs))
- self.dispatcher.ProcessNonBlocking('<message><x:y/></message>')
+ self.dispatcher.ProcessNonBlocking('<message from="test(a)test.at"><x:y/></message>')
self.assertEqual(2, len(msgs))
# we should not have been disconnected after that message
self.con.pollend.assert_not_called()
self.con.disconnect.assert_not_called()
# we should be able to keep parsing
- self.dispatcher.ProcessNonBlocking('<message><body>still here?</body></message>')
+ self.dispatcher.ProcessNonBlocking('<message from="test(a)test.at"><body>still here?</body></message>')
self.assertEqual(3, len(msgs))
def test_process_non_blocking(self):
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/commit/aa44a60c7833fa9f97776a37c3…
--
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/commit/aa44a60c7833fa9f97776a37c3…
You're receiving this email because of your account on dev.gajim.org.