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:
@@ -290,8 +290,11 @@ MasterServerDevice::_HandleNodeMonitor(BMessage* message)
|
|||||||
PRINT(("removing device '%s'\n", pointingDevice->DevicePath()));
|
PRINT(("removing device '%s'\n", pointingDevice->DevicePath()));
|
||||||
|
|
||||||
if (_LockDevices()) {
|
if (_LockDevices()) {
|
||||||
if (fDevices.RemoveItem((void*)pointingDevice))
|
if (fDevices.RemoveItem((void*)pointingDevice)) {
|
||||||
|
|
||||||
delete pointingDevice;
|
delete pointingDevice;
|
||||||
|
i--;
|
||||||
|
}
|
||||||
_UnlockDevices();
|
_UnlockDevices();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user