def exit(self): self.room_state.leave() try: del self.protocol.conversations[self.jid.as_unicode()] except KeyError: traceback.print_exc() Conversation.exit(self)
def exit(self, force_close = False): log.info("%r exiting", self) self._closed = True if self.ischat and self._chat_target_type == MSNAB.IMAddressInfoType.TemporaryGroup: circle = self.protocol.circle_buddies[self._chatbuddy] circle.sem.release() self._chatbuddy = None self._chat_target_name = None Conversation.exit(self) self.Disconnect()