package daemon: Fix check in Volume::_PackagesEntryCreated()

This commit is contained in:
Ingo Weinhold
2013-04-20 21:40:08 +02:00
parent e2678ec041
commit 2e3f5000e3
+9 -3
View File
@@ -1212,10 +1212,16 @@ void
Volume::_PackagesEntryCreated(const char* name)
{
INFORM("Volume::_PackagesEntryCreated(\"%s\")\n", name);
// Ignore the event, if we generated it ourselves.
// Ignore the event, if the package is already known.
Package* package = fPackagesByFileName.Lookup(name);
if (package->EntryCreatedIgnoreLevel() > 0) {
package->DecrementEntryCreatedIgnoreLevel();
if (package != NULL) {
if (package->EntryCreatedIgnoreLevel() > 0) {
package->DecrementEntryCreatedIgnoreLevel();
} else {
WARN("node monitoring created event for already known entry "
"\"%s\"\n", name);
}
return;
}