esp-nimble-cpp
esp-nimble-cpp copied to clipboard
NimBLEDevice::getDisconnectedClient returns currently connecting clients
When performing a pClient->connect, while the client is still (asynchronously) connecting, it appears that calling NimBLEDevice::getDisconnectedClient() can return the still connecting client as it doesn't yet have a connection handle.
Found this while trying to reuse client objects, and I am wondering if this particular behavior is expected?