diff --git a/src/mux_pt.c b/src/mux_pt.c index 9e9f1157f6..277e16d80a 100644 --- a/src/mux_pt.c +++ b/src/mux_pt.c @@ -470,7 +470,7 @@ static void mux_pt_shut(struct stconn *sc, unsigned int mode, struct se_abort_in if (mode & (SE_SHW_SILENT|SE_SHW_NORMAL)) { if (conn_xprt_ready(conn) && conn->xprt->shutw) conn->xprt->shutw(conn, conn->xprt_ctx, (mode & SE_SHW_NORMAL)); - if (!(conn->flags & CO_FL_SOCK_RD_SH)) + if (!(conn->flags & CO_FL_SOCK_WR_SH)) conn_sock_shutw(conn, (mode & SE_SHW_NORMAL)); }