diff options
Diffstat (limited to 'cpp/src/qpid/client/Connection.cpp')
-rw-r--r-- | cpp/src/qpid/client/Connection.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cpp/src/qpid/client/Connection.cpp b/cpp/src/qpid/client/Connection.cpp index b2508f4a24..26113c1254 100644 --- a/cpp/src/qpid/client/Connection.cpp +++ b/cpp/src/qpid/client/Connection.cpp @@ -70,12 +70,15 @@ void Connection::open( } void Connection::openChannel(Channel& channel) { - channel.open(newSession()); + channel.open(newSession(ASYNC)); } -Session_0_10 Connection::newSession(uint32_t detachedLifetime) { +Session_0_10 Connection::newSession(SynchronousMode sync, + uint32_t detachedLifetime) +{ shared_ptr<SessionCore> core( new SessionCore(impl, ++channelIdCounter, max_frame_size)); + core->setSync(sync); impl->addSession(core); core->open(detachedLifetime); return Session_0_10(core); |