]> git.ipfire.org Git - thirdparty/libvirt.git/commit
close callback: make unregister clean after connect close event
authorNikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
Wed, 17 Feb 2016 12:14:56 +0000 (15:14 +0300)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 1 Mar 2016 14:16:56 +0000 (14:16 +0000)
commit42b0f7510d656431d148f07a76e22cb8dc0b71cf
tree7aff672e6c23386b92a119dc113e5377a64ae9f7
parenta16cd9a6eb0089f86233b32fb14923beae6c068e
close callback: make unregister clean after connect close event

If connect close is fired then following unregister will fail
as we set callback to NULL and thus callback equality checking
will fail.

Callback is set to NULL to make it fired only one time probabaly.
Instead lets use connection equality to NULL to check if callback
is already fired.

Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
src/datatypes.c