Comment 2 for bug 940576

Revision history for this message
Aurélien Bompard (aurelien-bompard) wrote :

The committed fix does not work, I get this traceback :

  File "/usr/lib64/python2.6/site-packages/twisted/internet/tcp.py", line 680, in connectionLost
    Connection.connectionLost(self, reason)
  File "/usr/lib64/python2.6/site-packages/twisted/internet/tcp.py", line 520, in connectionLost
    protocol.connectionLost(reason)
  File "/usr/lib/python2.6/site-packages/txamqp/protocol.py", line 380, in connectionLost
    self.close(reason)
  File "/usr/lib/python2.6/site-packages/txamqp/protocol.py", line 292, in close
    self.delegate.close(reason)
  File "/usr/lib/python2.6/site-packages/txamqp/client.py", line 110, in close
    self.transport.loseConnection()
exceptions.AttributeError: 'TwistedDelegate' object has no attribute 'transport'

It should be :

    self.client.transport.loseConnection()