Use same style of boolean checking in conn_ok_to_close() (#347)

This commit is contained in:
Sijie Yang 2021-11-08 22:06:06 +08:00 committed by GitHub
parent 646652a67c
commit df67278304
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2767,8 +2767,8 @@ conn_ok_to_close (const struct ietf_full_conn *conn)
|| (
!lsquic_send_ctl_have_outgoing_stream_frames(&conn->ifc_send_ctl)
&& !have_bidi_streams(conn)
&& lsquic_send_ctl_have_unacked_stream_frames(
&conn->ifc_send_ctl) == 0);
&& !lsquic_send_ctl_have_unacked_stream_frames(
&conn->ifc_send_ctl));
}