]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
dict: Unref dict connection immediately when connection is destroyed
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Thu, 11 Jul 2019 09:05:37 +0000 (12:05 +0300)
committerSiavash Tavakoli <siavash.tavakoli@open-xchange.com>
Wed, 29 Sep 2021 08:46:27 +0000 (09:46 +0100)
commit3cf237588b8cf9eb0bd9e07f0c8c1c2e80487264
treeddcd5ca00dccbd525200140161ebaeb0cbdf5e92
parentbbac0ca05462d924426a1e73f678945412a84e02
dict: Unref dict connection immediately when connection is destroyed

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.
src/dict/dict-connection.c