mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 11:35:19 +00:00
node_device_udev: Remove the timeout if the data is disposed
Remove the timeout when the udevEventData is disposed, analogous to priv->watch. Reviewed-by: Boris Fiuczynski <fiuczy@linux.ibm.com> Reviewed-by: Jonathon Jongsma <jjongsma@redhat.com> Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com>
This commit is contained in:
parent
0f87a53a0a
commit
b13ddadc51
@ -88,6 +88,9 @@ udevEventDataDispose(void *obj)
|
||||
if (priv->watch != -1)
|
||||
virEventRemoveHandle(priv->watch);
|
||||
|
||||
if (priv->mdevctlTimeout > 0)
|
||||
virEventRemoveTimeout(priv->mdevctlTimeout);
|
||||
|
||||
if (!priv->udev_monitor)
|
||||
return;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user