rtmpproto: Make sure to pass on the error code if read_connect failed