You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by gs...@apache.org on 2015/04/07 11:02:07 UTC
qpid-proton git commit: PROTON-846: check whether connection is valid
Repository: qpid-proton
Updated Branches:
refs/heads/master b541ad088 -> 5bf533c2e
PROTON-846: check whether connection is valid
Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/5bf533c2
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/5bf533c2
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/5bf533c2
Branch: refs/heads/master
Commit: 5bf533c2eeb3cd17f64e6b90748bc23960d4a185
Parents: b541ad0
Author: Gordon Sim <gs...@redhat.com>
Authored: Tue Apr 7 10:03:43 2015 +0100
Committer: Gordon Sim <gs...@redhat.com>
Committed: Tue Apr 7 10:03:43 2015 +0100
----------------------------------------------------------------------
proton-c/bindings/python/proton/handlers.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/5bf533c2/proton-c/bindings/python/proton/handlers.py
----------------------------------------------------------------------
diff --git a/proton-c/bindings/python/proton/handlers.py b/proton-c/bindings/python/proton/handlers.py
index 5411a1d..6836788 100644
--- a/proton-c/bindings/python/proton/handlers.py
+++ b/proton-c/bindings/python/proton/handlers.py
@@ -370,7 +370,7 @@ class EndpointStateHandler(Handler):
self.on_transport_closed(event)
def on_transport_closed(self, event):
- if self.delegate and self.is_local_open(event.connection):
+ if self.delegate and event.connection and self.is_local_open(event.connection):
dispatch(self.delegate, 'on_disconnected', event)
class MessagingHandler(Handler, Acking):
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org