Don't skip over device items when re-scanning the watched folders for the

devices that were removed. Should use the BPathMonitor anyways...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28315 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2008-10-24 20:36:42 +00:00
parent 97893f16af
commit c2006b1a52

View File

@ -290,8 +290,11 @@ MasterServerDevice::_HandleNodeMonitor(BMessage* message)
PRINT(("removing device '%s'\n", pointingDevice->DevicePath()));
if (_LockDevices()) {
if (fDevices.RemoveItem((void*)pointingDevice))
if (fDevices.RemoveItem((void*)pointingDevice)) {
delete pointingDevice;
i--;
}
_UnlockDevices();
}
}