be more optimistic: if we cannot talk to SpringBoardAccess, assume system Bluetooth is off

This commit is contained in:
matthias.ringwald 2010-11-06 18:59:37 +00:00
parent 54e60893df
commit 2139f61875

View File

@ -82,6 +82,10 @@ int SBA_getBluetoothEnabled() {
result = 0; result = 0;
} }
CFRelease(cfData); CFRelease(cfData);
} else {
// error talking to SpringBoardAccess
// well, assume it's off and hope for the best
result = 0;
} }
return result; return result;
} }