diff options
author | Gordon Sim <gsim@apache.org> | 2015-06-15 15:16:31 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2015-06-15 15:16:31 +0000 |
commit | 3bdc1fd0b8318be4a269651d4609dae7599c8faa (patch) | |
tree | 86958007745cf9a2d3bb6e9f2378301f2a9413cb | |
parent | 8159ff8e284aa7869e40826a16920791d4369040 (diff) | |
download | qpid-python-3bdc1fd0b8318be4a269651d4609dae7599c8faa.tar.gz |
QPID-6392: detach not support until after proton 0.7
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1685594 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | cpp/src/qpid/broker/amqp/Connection.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cpp/src/qpid/broker/amqp/Connection.cpp b/cpp/src/qpid/broker/amqp/Connection.cpp index 144f55780f..6c946b1375 100644 --- a/cpp/src/qpid/broker/amqp/Connection.cpp +++ b/cpp/src/qpid/broker/amqp/Connection.cpp @@ -586,7 +586,10 @@ void Connection::doLinkRemoteDetach(pn_link_t *link, bool closed) { if ((pn_link_state(link) & PN_LOCAL_CLOSED) == 0) { if (closed) pn_link_close(link); + //pn_link_detach was only introduced after 0.7, as was the event interface: +#ifdef HAVE_PROTON_EVENTS else pn_link_detach(link); +#endif Sessions::iterator session = sessions.find(pn_link_session(link)); if (session == sessions.end()) { QPID_LOG(error, id << " peer attempted to detach link on unknown session!"); |