Shell exit fixes

This commit is contained in:
crschnick
2023-08-16 23:42:39 +00:00
parent 267e2a6968
commit 6dd476a40a
5 changed files with 11 additions and 12 deletions
@@ -33,12 +33,12 @@ import static io.xpipe.beacon.BeaconConfig.BODY_SEPARATOR;
public class BeaconClient implements AutoCloseable {
@Getter
private final Closeable base;
private final AutoCloseable base;
private final InputStream in;
private final OutputStream out;
private BeaconClient(Closeable base, InputStream in, OutputStream out) {
private BeaconClient(AutoCloseable base, InputStream in, OutputStream out) {
this.base = base;
this.in = in;
this.out = out;
@@ -107,7 +107,7 @@ public class BeaconClient implements AutoCloseable {
public void close() throws ConnectorException {
try {
base.close();
} catch (IOException ex) {
} catch (Exception ex) {
throw new ConnectorException("Couldn't close client", ex);
}
}