Shutdown the network when it fails to implement

This commit is contained in:
alena 2011-01-19 16:31:16 -08:00
parent db142eb467
commit 43c0190963

View File

@ -1045,6 +1045,9 @@ public class NetworkManagerImpl implements NetworkManager, NetworkService, Manag
} finally {
if (implemented.first() == null) {
s_logger.debug("Cleaning up because we're unable to implement network " + network);
network.setState(Network.State.Shutdown);
_networksDao.update(networkId, network);
shutdownNetwork(networkId);
}
_networksDao.releaseFromLockTable(networkId);
}