Skip to content

Commit

Permalink
[Linux] Check for error when registering GATT
Browse files Browse the repository at this point in the history
  • Loading branch information
arkq committed Oct 5, 2022
1 parent 7c244e6 commit 45ef30b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/platform/Linux/BLEManagerImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,7 @@ void BLEManagerImpl::DriveBLEState()
if (!mIsCentral && mServiceMode == ConnectivityManager::kCHIPoBLEServiceMode_Enabled && !mFlags.Has(Flags::kAppRegistered))
{
err = BluezGattsAppRegister(mpEndpoint);
SuccessOrExit(err);
mFlags.Set(Flags::kControlOpInProgress);
ExitNow();
}
Expand Down

0 comments on commit 45ef30b

Please sign in to comment.