reorg: move stream_close with other stream ops

master
Michael Santos 5 years ago
parent 0ba9e92eda
commit 17e40ad118

@ -96,3 +96,10 @@ XMPPIPE_STREAMERR:
errx(EXIT_FAILURE, "ack sequence mismatch: request=%u, ack=%u\n",
state->sm_request, state->sm_ack_sent);
}
void
xmppipe_stream_close(xmppipe_state_t *state)
{
if (state->sm_enabled)
xmpp_send_raw_string(state->conn, "</stream:stream>");
}

@ -270,10 +270,3 @@ xmppipe_next_state(xmppipe_state_t *state, int status)
state->status = status;
}
void
xmppipe_stream_close(xmppipe_state_t *state)
{
if (state->sm_enabled)
xmpp_send_raw_string(state->conn, "</stream:stream>");
}

Loading…
Cancel
Save