[httpclient] Fix a way to detect h3 use
Since `ctx.http3` is always set, one cannot determine if h3 was in
use by comparing `ctx.http3` with NULL.
@@ -715,7 +715,7 @@ int main(int argc, char **argv)
#endif
}
- if (ctx.http3 != NULL) {
+ if (ctx.protocol_selector.ratio.http3 > 0) {
h2o_quic_close_all_connections(&ctx.http3->h3);
while (h2o_quic_num_connections(&ctx.http3->h3) != 0) {
#if H2O_USE_LIBUV
