@@ -478,20 +478,21 @@ static int asha_source_disconnect(struct btd_service *service)
DBG("Disconnecting ASHA on %s", addr);
if (!asha_dev) {
/* Can this actually happen? */
DBG("Not handlihng ASHA profile");
return -1;
}
asha_source_endpoint_unregister(asha_dev);
bt_asha_reset(asha_dev->asha);
+ bt_asha_state_reset(asha_dev->asha);
btd_service_disconnecting_complete(service, 0);
return 0;
}
static struct btd_profile asha_source_profile = {
.name = "asha-source",
.priority = BTD_PROFILE_PRIORITY_MEDIUM,
.remote_uuid = ASHA_PROFILE_UUID,