update state on disconnect fix

pull/8738/head
paul-szczepanek-arm 2018-11-06 13:53:44 +00:00 committed by Vincent Coubard
parent 1f2ee0d873
commit ff68c94ec2
1 changed files with 1 additions and 0 deletions

View File

@ -2328,6 +2328,7 @@ public:
{
/* Update Gap state */
--connectionCount;
state.connected = false;
DisconnectionCallbackParams_t callbackParams(handle, reason);
disconnectionCallChain.call(&callbackParams);