Terminal launch fixes

This commit is contained in:
crschnick 2024-11-09 04:28:16 +00:00
parent dd5881f9ad
commit da4174e0f5

View file

@ -34,11 +34,15 @@ public class TerminalLaunchRequest {
public Path waitForCompletion() throws BeaconServerException {
while (true) {
if (getResult() == null) {
if (latch.getCount() > 0) {
ThreadHelper.sleep(10);
continue;
}
if (getResult() == null) {
throw new BeaconServerException("Launch request aborted");
}
var r = getResult();
if (r instanceof TerminalLaunchResult.ResultFailure failure) {
var t = failure.getThrowable();