bluetooth_server: Make the replicant remove itself if the server isn't running.

This commit is contained in:
Augustin Cavalier 2016-05-06 12:49:50 -04:00
parent 73f5ab0cf6
commit b984932928

View File

@ -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(