|
@@ -141,9 +141,11 @@ namespace mdd{
|
|
if(!fname.empty()){
|
|
if(!fname.empty()){
|
|
if (std::filesystem::exists(fname))
|
|
if (std::filesystem::exists(fname))
|
|
{
|
|
{
|
|
- *_child = child("python3 " + fname + " " + std::to_string(port));
|
|
|
|
|
|
+ _child = std::make_unique<child>("python3 " + fname + " " + std::to_string(port));
|
|
|
|
+ }
|
|
|
|
+ else {
|
|
|
|
+ std::cout << "ERROR Couldnt find: " << fname << std::endl;
|
|
}
|
|
}
|
|
- std::cout << "ERROR Couldnt find: " << fname << std::endl;
|
|
|
|
}
|
|
}
|
|
while(!connect()){
|
|
while(!connect()){
|
|
std::this_thread::sleep_for(std::chrono::microseconds(500));
|
|
std::this_thread::sleep_for(std::chrono::microseconds(500));
|