Skip to content
Snippets Groups Projects
Commit 7f42b41d authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Fix for gui2 net connect wait bug

parent 8af1fbe6
Branches
No related tags found
1 merge request!316Resolves #343 GUI and Frame Refactor
Pipeline #27996 failed
......@@ -375,14 +375,7 @@ uint32_t Feed::add(const std::string &path) {
// TODO: do not connect same uri twice
// TODO: write unit test
net_->connect(path);
do {
cv_net_connect_.wait(lk);
if (fsid_lookup_.count(path) == 1) {
return fsid_lookup_[path];
}
}
while(true); // TODO: timeout+ cv timeout
net_->connect(path)->waitConnection();
}
else{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment