mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-21 23:20:23 +00:00
Terminal launch fixes
This commit is contained in:
parent
dd5881f9ad
commit
da4174e0f5
1 changed files with 5 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue