This commit is contained in:
Phillip Webb
2023-09-20 15:43:03 -07:00
parent d28982f3bd
commit e10ac76761
3 changed files with 31 additions and 43 deletions

View File

@@ -74,7 +74,7 @@ public abstract class DomainSocket extends AbstractSocket {
return new FileDescriptor(handle, this::close);
}
catch (RuntimeException ex) {
this.close(handle);
close(handle);
throw ex;
}
}