package daemon: Volume: Make sure move entry events don't get split

This commit is contained in:
Ingo Weinhold 2013-04-08 15:21:26 +02:00
parent 9e4096146f
commit 91a9b5f276
1 changed files with 3 additions and 0 deletions

View File

@ -320,6 +320,9 @@ Volume::_HandleEntryMoved(const BMessage* message)
return;
}
AutoLocker<BLocker> eventsLock(fPendingNodeMonitorEventsLock);
// make sure for a move the two events cannot get split
if (fromDirectoryID == fPackagesDirectoryRef.node)
_QueueNodeMonitorEvent(fromName, false);
if (toDirectoryID == fPackagesDirectoryRef.node)