From da8b77b664ec37c7129625924ea08bad46345e0e Mon Sep 17 00:00:00 2001 From: xengineering Date: Fri, 7 Oct 2022 19:20:44 +0200 Subject: Remove sm_state variable Not really used because this is just in case you want a new connection object (currently not the case). --- net.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/net.c b/net.c index 9fa5df4..c037bc1 100644 --- a/net.c +++ b/net.c @@ -31,9 +31,6 @@ static xmpp_ctx_t* ctx; static xmpp_conn_t* conn; static long flags; -// this variable stays initialized while the connection is suspended -static xmpp_sm_state_t* sm_state; - static int message_handler(xmpp_conn_t* conn, xmpp_stanza_t* stanza, void* userdata) { @@ -199,10 +196,6 @@ void net_disconnect(void) { fprintf(stderr, "net_disconnect()\n"); - if (sm_state) { - sm_state = NULL; - } - if (conn != NULL && xmpp_conn_is_connected(conn)) { xmpp_disconnect(conn); while (xmpp_conn_is_connected(conn)) { -- cgit v1.2.3-70-g09d2