213
220
void EntityRetriever<T>::queryEndpoint(void *arg) {
214
221
AutoPointer<ThreadArg> a((ThreadArg*)arg);
215
222
ThreadedPointer<Common>& common = a->common;
219
set = (*common)->setStatusOfEndpoint(a->endpoint, EndpointQueryingStatus(EndpointQueryingStatus::STARTED), false);
223
logger.msg(DEBUG, "Will not query endpoint (%s) because another thread is already querying it", a->endpoint.str());
226
224
// If the thread was able to set the status, then this is the first (and only) thread querying this endpoint
227
225
if (!a->pluginName.empty()) { // If the plugin was already selected
228
226
EntityRetrieverPlugin<T>* plugin = common->load(a->pluginName);