bluetooth_server: Make the replicant remove itself if the server isn't running.
This commit is contained in:
parent
73f5ab0cf6
commit
b984932928
@ -214,6 +214,10 @@ void
|
||||
DeskbarReplicant::_QuitBluetoothServer()
|
||||
{
|
||||
if (!be_roster->IsRunning(BLUETOOTH_SIGNATURE)) {
|
||||
// The server isn't running, so remove ourself
|
||||
BDeskbar deskbar;
|
||||
deskbar.RemoveItem(kDeskbarItemName);
|
||||
|
||||
return;
|
||||
}
|
||||
status_t status = BMessenger(BLUETOOTH_SIGNATURE).SendMessage(
|
||||
|
Loading…
Reference in New Issue
Block a user