You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by rh...@apache.org on 2009/08/21 13:55:31 UTC

svn commit: r806514 - /qpid/trunk/qpid/python/qpid/session.py

Author: rhs
Date: Fri Aug 21 11:55:30 2009
New Revision: 806514

URL: http://svn.apache.org/viewvc?rev=806514&view=rev
Log:
fixed attribute error

Modified:
    qpid/trunk/qpid/python/qpid/session.py

Modified: qpid/trunk/qpid/python/qpid/session.py
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/python/qpid/session.py?rev=806514&r1=806513&r2=806514&view=diff
==============================================================================
--- qpid/trunk/qpid/python/qpid/session.py (original)
+++ qpid/trunk/qpid/python/qpid/session.py Fri Aug 21 11:55:30 2009
@@ -146,7 +146,8 @@
     if self._closing:
       raise SessionClosed()
 
-    if self.channel == None:
+    ch = self.channel
+    if ch == None:
       raise SessionDetached()
 
     if op == MessageTransfer:
@@ -162,7 +163,7 @@
     cmd = op(*args, **kwargs)
     cmd.sync = self.auto_sync or cmd.sync
     self.need_sync = not cmd.sync
-    cmd.channel = self.channel.id
+    cmd.channel = ch.id
 
     if op.RESULT:
       result = Future(exception=SessionException)



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org