diff options
Diffstat (limited to 'cpp/lib/client/ClientChannel.cpp')
| -rw-r--r-- | cpp/lib/client/ClientChannel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/lib/client/ClientChannel.cpp b/cpp/lib/client/ClientChannel.cpp index 9d1c8ec011..4dff8a62f7 100644 --- a/cpp/lib/client/ClientChannel.cpp +++ b/cpp/lib/client/ClientChannel.cpp @@ -245,7 +245,7 @@ void Channel::retrieve(Message& msg){ msg.header = retrieved->getHeader(); msg.deliveryTag = retrieved->getDeliveryTag(); - retrieved->getData(msg.data); + msg.data = retrieved->getData(); delete retrieved; retrieved = 0; } @@ -446,7 +446,7 @@ void Channel::dispatch(){ if(incomingMsg){ //Note: msg is currently only valid for duration of this call Message msg(incomingMsg->getHeader()); - incomingMsg->getData(msg.data); + msg.data = incomingMsg->getData(); if(incomingMsg->isReturn()){ if(returnsHandler == 0){ //print warning to log/console |
