summaryrefslogtreecommitdiff
path: root/net.c
diff options
context:
space:
mode:
Diffstat (limited to 'net.c')
-rw-r--r--net.c7
1 files changed, 0 insertions, 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)) {