esp-nimble-cpp icon indicating copy to clipboard operation
esp-nimble-cpp copied to clipboard

NimBLEDevice::getDisconnectedClient returns currently connecting clients

Open dcodeIO opened this issue 8 months ago • 2 comments

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?

dcodeIO avatar May 20 '25 21:05 dcodeIO