CLOUDSTACK-9860: Fix stackoverflow issue

Fixes issue caused to a PR-refactoring from #2108, reported by
@borisstoyanov

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Rohit Yadav 2017-06-06 16:13:05 +05:30
parent 48f413a982
commit e197652a28

View File

@ -2733,7 +2733,7 @@ public class LibvirtComputingResource extends ServerResourceBase implements Serv
if (forceStop) { if (forceStop) {
return stopVMInternal(conn, vmName, true); return stopVMInternal(conn, vmName, true);
} }
String ret = stopVM(conn, vmName, false); String ret = stopVMInternal(conn, vmName, false);
if (ret == Script.ERR_TIMEOUT) { if (ret == Script.ERR_TIMEOUT) {
ret = stopVMInternal(conn, vmName, true); ret = stopVMInternal(conn, vmName, true);
} else if (ret != null) { } else if (ret != null) {