Skip to content
Snippets Groups Projects
Commit c708ec1f authored by Armin Luntzer's avatar Armin Luntzer
Browse files

server net: move g_clear_object() to correct (?) spot

parent 7f83ccd0
No related branches found
No related tags found
No related merge requests found
......@@ -200,6 +200,9 @@ static void try_disconnect_socket(struct con_data *c)
g_clear_error(&error);
}
}
/* drop initial reference */
g_clear_object(&c->con);
}
......@@ -232,9 +235,6 @@ static void drop_con_begin(struct con_data *c)
g_thread_pool_free(c->pool, TRUE, FALSE);
c->pool = NULL;
/* drop initial reference */
g_clear_object(&c->con);
try_disconnect_socket(c);
g_mutex_unlock(&listlock);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment