Fix clearing svc_cache before the adapter is up

This commit is contained in:
Johan Hedberg 2009-07-08 17:51:10 +03:00
parent 302eee8269
commit 6153b626c1

View File

@ -2269,7 +2269,8 @@ int adapter_update(struct btd_adapter *adapter, uint8_t new_svc)
return 0;
if (!adapter->up) {
adapter->svc_cache = new_svc;
if (new_svc)
adapter->svc_cache = new_svc;
return 0;
}