mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 11:35:19 +00:00
netserver: Remove ServiceToggle during ServerDispose
No sense in calling ServiceToggle for all nservices during ServiceDispose since ServerClose calls ServiceClose which removes the IOCallback that's being toggled via ServiceToggle. Signed-off-by: John Ferlan <jferlan@redhat.com> Reviewed-by: Erik Skultety <eskultet@redhat.com>
This commit is contained in:
parent
5870f95a7a
commit
a8ef7b69dc
@ -805,9 +805,6 @@ void virNetServerDispose(void *obj)
|
|||||||
|
|
||||||
VIR_FREE(srv->name);
|
VIR_FREE(srv->name);
|
||||||
|
|
||||||
for (i = 0; i < srv->nservices; i++)
|
|
||||||
virNetServerServiceToggle(srv->services[i], false);
|
|
||||||
|
|
||||||
virThreadPoolFree(srv->workers);
|
virThreadPoolFree(srv->workers);
|
||||||
|
|
||||||
for (i = 0; i < srv->nservices; i++)
|
for (i = 0; i < srv->nservices; i++)
|
||||||
|
Loading…
Reference in New Issue
Block a user