Don't call application callbacks invoked when connection not established.

If a connection event was sent but failed to establish then the disconnect
callback would be triggered when the application was not yet informed of the connection.

* Cleanup logs and add comments.
This commit is contained in:
h2zero committed 2021-01-12 13:52:28 -07:00
1 parent 28717c300a
commit 740f280664
2 files changed
+52 -29

No files matched your search

+1
View File
@@ -89,6 +89,7 @@ private:
NimBLEAddress m_peerAddress;
uint16_t m_conn_id;
bool m_connEstablished;
bool m_deleteCallbacks;
int32_t m_connectTimeout;
NimBLEClientCallbacks* m_pClientCallbacks;