Fix restartNetwork wrongly report stop failure

This commit is contained in:
Sheng Yang 2011-09-14 02:58:44 -07:00
parent 474d1a6034
commit f19fca6ec6
1 changed files with 1 additions and 1 deletions

View File

@ -162,7 +162,7 @@ public class VirtualRouterElement extends DhcpElement implements NetworkElement,
}
if (cleanup) {
/* FIXME it's not completely safe to ignore these failure, but we would try to push on now */
if (router.getState() != State.Stopped || _routerMgr.stopRouter(router.getId(), false) == null) {
if (router.getState() != State.Stopped && _routerMgr.stopRouter(router.getId(), false) == null) {
s_logger.warn("Failed to stop virtual router element " + router + " as a part of network " + network + " restart");
}
if (_routerMgr.destroyRouter(router.getId()) == null) {