adapter: Fix not waiting for stop discovery result

We should not reply until the stop discovery completes otherwise
clients may attempt to start the discovery before it even has stopped.

On top of this it will now block clients so they so not be able to
queue more requests.
1 file changed