def connectionLost(self, reason):
    if (self.connection_lost_callback is not None):
        self.connection_lost_callback(reason)
    log.msg('XMPP Connection lost.')
    super(XMPPTransportProtocol, self).connectionLost(reason)
def connectionLost(self, reason):
    if (self.connection_lost_callback is not None):
        self.connection_lost_callback(reason)
    log.msg('XMPP Connection lost.')
    super(XMPPTransportProtocol, self).connectionLost(reason)