diff options
-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)) { |