summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/qpid/cluster/Decoder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qpid/cpp/src/qpid/cluster/Decoder.cpp')
-rw-r--r--qpid/cpp/src/qpid/cluster/Decoder.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qpid/cpp/src/qpid/cluster/Decoder.cpp b/qpid/cpp/src/qpid/cluster/Decoder.cpp
index b2ab7c8d0f..54d0224db1 100644
--- a/qpid/cpp/src/qpid/cluster/Decoder.cpp
+++ b/qpid/cpp/src/qpid/cluster/Decoder.cpp
@@ -29,12 +29,12 @@ namespace cluster {
using namespace framing;
-Decoder::Decoder(const Handler& h) : handler(h) {}
+Decoder::Decoder(const Handler& h, ConnectionMap& cm) : handler(h), connections(cm) {}
void Decoder::decode(const EventHeader& eh, const void* data) {
ConnectionId id = eh.getConnectionId();
std::pair<Map::iterator, bool> ib = map.insert(id, new ConnectionDecoder(handler));
- ptr_map_ptr(ib.first)->decode(eh, data);
+ ptr_map_ptr(ib.first)->decode(eh, data, connections);
}
void Decoder::erase(const ConnectionId& c) {