diff options
author | Yann Leboulanger <asterix@lagaule.org> | 2016-11-29 00:23:42 +0300 |
---|---|---|
committer | Yann Leboulanger <asterix@lagaule.org> | 2016-11-29 00:23:42 +0300 |
commit | 7b3d5956651e926afd91cea46f605a95e01c7667 (patch) | |
tree | fbee097d6de5fe4ca06c8e98c39f0e80eaacfe49 | |
parent | 471329a0e070b8eaaa175043aa01314ca074ae91 (diff) |
fix time.time() call. Fixes #8446
-rw-r--r-- | src/common/connection.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/connection.py b/src/common/connection.py index e1cea9b8c..0d4125a35 100644 --- a/src/common/connection.py +++ b/src/common/connection.py @@ -1632,7 +1632,7 @@ class Connection(CommonConnection, ConnectionHandlers): iq.addChild(name='ping', namespace=nbxmpp.NS_PING) iq.setID(id_) def _on_response(resp): - timePong = time_time() + timePong = time.time() if not nbxmpp.isResultNode(resp): gajim.nec.push_incoming_event(PingErrorEvent(None, conn=self, contact=pingTo)) @@ -1641,7 +1641,7 @@ class Connection(CommonConnection, ConnectionHandlers): gajim.nec.push_incoming_event(PingReplyEvent(None, conn=self, contact=pingTo, seconds=timeDiff, control=control)) if pingTo: - timePing = time_time() + timePing = time.time() self.connection.SendAndCallForResponse(iq, _on_response) else: self.connection.SendAndCallForResponse(iq, self._on_xmpp_ping_answer) |