mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 17:41:45 +00:00
AttachChannel must update the config after it's done, use boost::split
This commit is contained in:
committed by
Mohammad Al-Turany
parent
0fb49a0986
commit
6c3b01f09c
@@ -26,6 +26,8 @@
|
||||
#include <termios.h> // for the InteractiveStateLoop
|
||||
#include <poll.h>
|
||||
|
||||
#include <boost/algorithm/string.hpp> // join/split
|
||||
|
||||
#include "FairMQSocket.h"
|
||||
#include "FairMQDevice.h"
|
||||
#include "FairMQLogger.h"
|
||||
@@ -348,6 +350,10 @@ bool FairMQDevice::AttachChannel(FairMQChannel& ch)
|
||||
// after the book keeping is done, exit in case of errors
|
||||
if (!rc) return rc;
|
||||
}
|
||||
|
||||
// put the (possibly) modified address back in the config
|
||||
ch.UpdateAddress(boost::algorithm::join(endpoints, ","));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user