diff options
author | xengineering <me@xengineering.eu> | 2022-10-07 19:20:44 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2022-10-07 19:20:44 +0200 |
commit | da8b77b664ec37c7129625924ea08bad46345e0e (patch) | |
tree | 60990b6a6b647e665d8591ca4e652998e950abb7 | |
parent | f5e15fdf39f5afe6a852025c410ced5c701e3ee1 (diff) | |
download | limox-da8b77b664ec37c7129625924ea08bad46345e0e.tar limox-da8b77b664ec37c7129625924ea08bad46345e0e.tar.zst limox-da8b77b664ec37c7129625924ea08bad46345e0e.zip |
Remove sm_state variable
Not really used because this is just in case you want a new connection
object (currently not the case).
-rw-r--r-- | net.c | 7 |
1 files changed, 0 insertions, 7 deletions
@@ -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)) { |