If the connection is lost while discovering services and a new connection is established, the lib gets into a state where it cannot start discovering again because the service discovery process already started in the previous connection attempt.
The lib should listen to connection notifications and stop discovering services if the connection is lost.
If the connection is lost while discovering services and a new connection is established, the lib gets into a state where it cannot start discovering again because the service discovery process already started in the previous connection attempt.
The lib should listen to connection notifications and stop discovering services if the connection is lost.