Avoid destroying the descriptors at closing devices. Thhis allow quitting and relaunching the bluetooth_server without losing functionality
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29641 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -380,6 +380,9 @@ device_removed(void* cookie)
|
|||||||
}
|
}
|
||||||
|
|
||||||
bdev->connected = false;
|
bdev->connected = false;
|
||||||
|
|
||||||
|
// TODO: place this in the appropiated hook
|
||||||
|
// kill_device(bdev);
|
||||||
|
|
||||||
return B_OK;
|
return B_OK;
|
||||||
}
|
}
|
||||||
@@ -577,8 +580,6 @@ device_free (void *cookie)
|
|||||||
connected, so remove it from the list. */
|
connected, so remove it from the list. */
|
||||||
}
|
}
|
||||||
|
|
||||||
kill_device(bdev);
|
|
||||||
|
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user