If we load new features from a plugin, restart loading from first plugin

This commit is contained in:
Martin Willi 2012-05-03 11:08:09 +02:00
parent c9931135d1
commit 40ca363a8b

View File

@ -429,6 +429,10 @@ static int load_features(private_plugin_loader_t *this, bool soft, bool report)
}
feature++;
}
if (loaded && !report)
{ /* got new feature, restart from beginning of list */
break;
}
}
enumerator->destroy(enumerator);
return loaded;