fDeviceAddons wasn't maintained correctly. this fixes #2610
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27092 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
2a1a5a296f
commit
3658735727
@ -278,6 +278,10 @@ DeviceManager::StopMonitoringDevice(_BDeviceAddOn_ *addon,
|
|||||||
j++;
|
j++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (addon->fMonitoredRefs.IsEmpty()) {
|
||||||
|
fDeviceAddons.RemoveItem(addon);
|
||||||
|
}
|
||||||
|
|
||||||
// stop monitoring if needed
|
// stop monitoring if needed
|
||||||
if (!stillMonitored) {
|
if (!stillMonitored) {
|
||||||
if ((err = RemoveDirectory(&nref, addon)) != B_OK)
|
if ((err = RemoveDirectory(&nref, addon)) != B_OK)
|
||||||
|
Loading…
Reference in New Issue
Block a user