network: Don't check if network is active in networkShutdownNetwork
It skips the cleanup from networkStartNetwork and the only other path already checks if the network is active or not. Signed-off-by: Martin Kletzander <mkletzan@redhat.com> Reviewed-by: Laine Stump <laine@redhat.com>
This commit is contained in:
parent
3e43670f01
commit
0e43cb09ee
@ -2405,9 +2405,6 @@ networkShutdownNetwork(virNetworkDriverState *driver,
|
||||
|
||||
VIR_INFO("Shutting down network '%s'", def->name);
|
||||
|
||||
if (!virNetworkObjIsActive(obj))
|
||||
return 0;
|
||||
|
||||
stateFile = virNetworkConfigFile(cfg->stateDir, def->name);
|
||||
if (!stateFile)
|
||||
return -1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user