def close(self, reason): """The AMQClient protocol calls this as a result of a connectionLost event. The TwistedDelegate.close method finishes shutting off the client, and we get a chance to react to the event here. """ TwistedDelegate.close(self, reason) log.err("AMQP Client Connection Closed") log.err(reason)
def close(self, reason): TwistedDelegate.close(self, reason) self._fireDisconnected(reason)
def close(self, reason): """ We can do things here when the connection closes """ #print "CLOSE" return TwistedDelegate.close(self, reason)