Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,11 @@ public void kill() throws IOException, InterruptedException {
public int join() throws IOException, InterruptedException {
try {
LOGGER.log(Level.FINEST, "Waiting for websocket to close on command finish ({0})", finished);
finished.await();
LOGGER.log(Level.FINEST, "Command is finished ({0})", finished);
if (finished.await(1, TimeUnit.MINUTES)) {
LOGGER.log(Level.FINEST, "Command is finished (the count reached zero)");
} else {
LOGGER.log(Level.FINEST, "Command is finished (waiting time elapsed before the count reached zero)");
}

CompletableFuture<Integer> exitCodeFuture = watch.exitCode();

Expand Down