summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/client/FutureResponse.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/qpid/client/FutureResponse.cpp')
-rw-r--r--cpp/src/qpid/client/FutureResponse.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/cpp/src/qpid/client/FutureResponse.cpp b/cpp/src/qpid/client/FutureResponse.cpp
index e63dc9c192..afdd35c5eb 100644
--- a/cpp/src/qpid/client/FutureResponse.cpp
+++ b/cpp/src/qpid/client/FutureResponse.cpp
@@ -21,14 +21,17 @@
#include "FutureResponse.h"
+#include "SessionCore.h"
+
using namespace qpid::client;
using namespace qpid::framing;
using namespace qpid::sys;
-AMQMethodBody* FutureResponse::getResponse()
+AMQMethodBody* FutureResponse::getResponse(SessionCore& session)
{
waitForCompletion();
+ session.checkClosed();
return response.get();
}