// Store the connection information in the protocol links map
// Store the connection information in the protocol links map
protocolLinks.insertMulti(protocol,link);
protocolLinks.insertMulti(protocol,link);
dataMutex.unlock();
// Make sure the protocol clears its metadata for this link.
// Make sure the protocol clears its metadata for this link.
protocol->resetMetadataForLink(link);
protocol->resetMetadataForLink(link);
}else{
dataMutex.unlock();
}
}
//qDebug() << __FILE__ << __LINE__ << "ADDED LINK TO PROTOCOL" << link->getName() << protocol->getName() << "NEW SIZE OF LINK LIST:" << protocolLinks.size();
//qDebug() << __FILE__ << __LINE__ << "ADDED LINK TO PROTOCOL" << link->getName() << protocol->getName() << "NEW SIZE OF LINK LIST:" << protocolLinks.size();