The delayed unrefing is needed when calling from dict command callbacks to
avoid calling dict_deinit() too early. But the connection's destroy() vfunc
can't be called directly from dict command callbacks, so there's no need
to add further delays. Especially when this happens at deinit where there is
no possibility of calling the delayed callback anymore.
dict_connection_cmds_output_more(conn);
io_remove(&conn->conn.io);
- dict_connection_unref_safe(conn);
+ dict_connection_unref(conn);
}
unsigned int dict_connections_current_count(void)