mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 17:41:45 +00:00
Testing the double subscription
This commit is contained in:
committed by
Dennis Klein
parent
18dc536f3d
commit
cf26dd6aa7
@@ -227,7 +227,11 @@ void DDSSession::StartDDSService() { fImpl->fDDSService.start(fImpl->fId); }
|
||||
|
||||
void DDSSession::SubscribeToCommands(std::function<void(const std::string& msg, const std::string& condition, uint64_t senderId)> cb)
|
||||
{
|
||||
fImpl->fSession.unsubscribe(); // TODO REMOVE THIS HACK!!!!
|
||||
fImpl->fDDSCustomCmd.subscribe(cb);
|
||||
fImpl->fDDSCustomCmd.subscribeOnReply([](const std::string& reply) {
|
||||
LOG(debug) << reply;
|
||||
});
|
||||
}
|
||||
|
||||
void DDSSession::SendCommand(const std::string& cmd) { fImpl->fDDSCustomCmd.send(cmd, ""); }
|
||||
|
Reference in New Issue
Block a user