diff --git a/thorlcr/slave/thslavemain.cpp b/thorlcr/slave/thslavemain.cpp index dccf3e0d100..9c38976554e 100644 --- a/thorlcr/slave/thslavemain.cpp +++ b/thorlcr/slave/thslavemain.cpp @@ -411,10 +411,6 @@ int main( int argc, const char *argv[] ) slfEp.port = queryMyNode()->endpoint().port; setMachinePortBase(slfEp.port); - setSlaveAffinity(globals->getPropInt("@slaveprocessnum")); - - if (globals->getPropBool("@MPChannelReconnect")) - getMPServer()->setOpt(mpsopt_channelreopen, "true"); #ifdef USE_MP_LOG startLogMsgParentReceiver(); LOG(MCdebugProgress, thorJob, "MPServer started on port %d", getFixedPort(TPORT_mp)); @@ -430,6 +426,12 @@ int main( int argc, const char *argv[] ) if (!slaveLogHandler) slaveLogHandler = startSlaveLog(); + setSlaveAffinity(globals->getPropInt("@slaveprocessnum")); + + if (globals->getPropBool("@MPChannelReconnect")) + getMPServer()->setOpt(mpsopt_channelreopen, "true"); + + if (getExpertOptBool("slaveDaliClient")) enableThorSlaveAsDaliClient();