# HG changeset patch # User Goffi # Date 1563696992 -7200 # Node ID af9d713036057a1d0dc8d148caeaa82aaa0efaaa # Parent c9f03b1eb64dab4f5bf8533c80327703adc5585a plugin XEP-0198: don't crash if transport is None in onAckTimeOut diff -r c9f03b1eb64d -r af9d71303605 sat/plugins/plugin_xep_0198.py --- a/sat/plugins/plugin_xep_0198.py Sat Jul 20 20:55:17 2019 +0200 +++ b/sat/plugins/plugin_xep_0198.py Sun Jul 21 10:16:32 2019 +0200 @@ -510,7 +510,11 @@ def onAckTimeOut(self, client): """Called when a requested ACK has not been received in time""" log.info(_(u"Ack was not received in time, aborting connection")) - client.xmlstream.transport.abortConnection() + transport = client.xmlstream.transport + if transport is None: + log.warning(u"transport was already removed") + else: + transport.abortConnection() client._xep_0198_session.req_timer = None