summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2022-10-07 19:20:44 +0200
committerxengineering <me@xengineering.eu>2022-10-07 19:20:44 +0200
commitda8b77b664ec37c7129625924ea08bad46345e0e (patch)
tree60990b6a6b647e665d8591ca4e652998e950abb7
parentf5e15fdf39f5afe6a852025c410ced5c701e3ee1 (diff)
downloadlimox-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.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)) {