[fix] create monitor socket before connect
Change the `wait_connected` method to a `connect` method with an optional wait. Ensure that the actual connect call on the socket is done after the monitor is created, otherwise the monitor might miss the connection event.
Showing
Please register or sign in to comment