You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by cl...@apache.org on 2015/12/15 22:41:18 UTC

qpid-proton git commit: PROTON-1026: Fix core dump. Code is treating cooked event as a raw one. But also doing both delegated and default actions instead of just the former (there is always a delegate).

Repository: qpid-proton
Updated Branches:
  refs/heads/master a8d87bb3c -> 87ece507e


PROTON-1026: Fix core dump.  Code is treating cooked event as a raw
one.  But also doing both delegated and default actions instead of
just the former (there is always a delegate).


Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/87ece507
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/87ece507
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/87ece507

Branch: refs/heads/master
Commit: 87ece507eddc90f51561b184c080553e1eb41f1e
Parents: a8d87bb
Author: Clifford Jansen <cl...@apache.org>
Authored: Tue Dec 15 13:39:39 2015 -0800
Committer: Clifford Jansen <cl...@apache.org>
Committed: Tue Dec 15 13:39:39 2015 -0800

----------------------------------------------------------------------
 proton-c/bindings/cpp/src/messaging_adapter.cpp | 15 ---------------
 1 file changed, 15 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/87ece507/proton-c/bindings/cpp/src/messaging_adapter.cpp
----------------------------------------------------------------------
diff --git a/proton-c/bindings/cpp/src/messaging_adapter.cpp b/proton-c/bindings/cpp/src/messaging_adapter.cpp
index d551018..c91df35 100644
--- a/proton-c/bindings/cpp/src/messaging_adapter.cpp
+++ b/proton-c/bindings/cpp/src/messaging_adapter.cpp
@@ -328,29 +328,14 @@ void messaging_adapter::on_link_opening(event &e) {
 
 void messaging_adapter::on_connection_error(event &e) {
     delegate_.on_connection_error(e);
-    proton_event *pe = dynamic_cast<proton_event*>(&e);
-    if (pe) {
-        pn_connection_t *connection = pn_event_connection(pe->pn_event());
-        pn_connection_close(connection);
-    }
 }
 
 void messaging_adapter::on_session_error(event &e) {
     delegate_.on_session_error(e);
-    proton_event *pe = dynamic_cast<proton_event*>(&e);
-    if (pe) {
-        pn_session_t *session = pn_event_session(pe->pn_event());
-        pn_session_close(session);
-    }
 }
 
 void messaging_adapter::on_link_error(event &e) {
     delegate_.on_link_error(e);
-    proton_event *pe = dynamic_cast<proton_event*>(&e);
-    if (pe) {
-        pn_link_t *link = pn_event_link(pe->pn_event());
-        pn_link_close(link);
-    }
 }
 
 void messaging_adapter::on_connection_closed(event &e) {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org