Skip to content

Commit

Permalink
Merge pull request #22035 from dreis2211
Browse files Browse the repository at this point in the history
* gh-22035:
  Catch more generic FileSystemException in NamedPipeSocket

Closes gh-22035
  • Loading branch information
scottfrederick committed Jun 19, 2020
2 parents f961043 + a6e8561 commit d5e667f
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -26,7 +26,7 @@
import java.nio.channels.AsynchronousFileChannel;
import java.nio.channels.Channels;
import java.nio.channels.CompletionHandler;
import java.nio.file.NoSuchFileException;
import java.nio.file.FileSystemException;
import java.nio.file.Paths;
import java.nio.file.StandardOpenOption;
import java.util.concurrent.CompletableFuture;
Expand Down Expand Up @@ -64,7 +64,7 @@ private AsynchronousFileByteChannel open(String path) throws IOException {
return new AsynchronousFileByteChannel(AsynchronousFileChannel.open(Paths.get(path),
StandardOpenOption.READ, StandardOpenOption.WRITE));
}
catch (NoSuchFileException ex) {
catch (FileSystemException ex) {
if (System.nanoTime() - startTime >= TIMEOUT) {
throw ex;
}
Expand Down

0 comments on commit d5e667f

Please sign in to comment.