PT #159690556: Dispose boot app handle if failed to connect to VM

descriptor
This commit is contained in:
BoykoAlex
2018-08-10 13:26:22 -04:00
parent 3e17b02fb0
commit 4c5e77e682

View File

@@ -66,6 +66,7 @@ public class LocalSpringBootApp extends AbstractSpringBootApp {
address = vm.startLocalManagementAgent();
} catch (IOException e) {
logger.error("Error starting local management agent", e);
dispose();
}
}
return address;