From 5f1d73e5cc7bd32fb0c3bfe5a296138cc7ffa30b Mon Sep 17 00:00:00 2001 From: "Rafael H. Schloming" Date: Fri, 21 Aug 2009 22:21:49 +0000 Subject: fixed some more channel attribute errors; eliminated most uses of catchup in favor of waiting on semantically meaningful predicates; fixed Serial.__cmp__ to check the type of the other object git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@806734 13f79535-47bb-0310-9956-ffa450edef68 --- python/qpid/session.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'python/qpid/session.py') diff --git a/python/qpid/session.py b/python/qpid/session.py index 071d4dc817..2f1bd81bd4 100644 --- a/python/qpid/session.py +++ b/python/qpid/session.py @@ -244,13 +244,16 @@ class Sender: self._completed = RangedSet() def send(self, cmd): + ch = self.session.channel + if ch is None: + raise SessionDetached() cmd.id = self.next_id self.next_id += 1 if self.session.send_id: self.session.send_id = False - self.session.channel.session_command_point(cmd.id, 0) + ch.session_command_point(cmd.id, 0) self.commands.append(cmd) - self.session.channel.connection.write_op(cmd) + ch.connection.write_op(cmd) def completed(self, commands): idx = 0 -- cgit v1.2.1