diff options
author | Alan Conway <aconway@apache.org> | 2006-09-25 17:33:26 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2006-09-25 17:33:26 +0000 |
commit | a41dbb3c857bb20cb7df0dbfd75e98652f51fd6d (patch) | |
tree | 4e4925c8162d84393f0fd94401f8799d598190ab /python/qpid/message.py | |
parent | de7a26920620a8d11cc0e0de1c87c11e3f71f27f (diff) | |
download | qpid-python-a41dbb3c857bb20cb7df0dbfd75e98652f51fd6d.tar.gz |
Close channels on fatal errors to prevent hangs, provide useful stack trace.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@449750 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/qpid/message.py')
-rw-r--r-- | python/qpid/message.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/qpid/message.py b/python/qpid/message.py index 08b3e70c0b..ae06c934c1 100644 --- a/python/qpid/message.py +++ b/python/qpid/message.py @@ -26,7 +26,7 @@ class Message: def __len__(self): l = len(self.fields) - if method.content: + if self.method.content: l += 1 return len(self.fields) |