Skip to content
Permalink
Browse files

Fix #352 - close protobuf files opened by batch processor. (#353)

  • Loading branch information...
KyleGancarz authored and barbeau committed Jul 10, 2019
1 parent e20a41f commit 7c740c3f02620a48dd837164f8a8b5f0272a5075
@@ -198,7 +198,9 @@ public void setIgnoreShapes(boolean ignoreShapes) {
long startToByteArray = System.nanoTime();
byte[] protobuf;
try {
protobuf = IOUtils.toByteArray(Files.newInputStream(path));
InputStream inputStream = Files.newInputStream(path);
protobuf = IOUtils.toByteArray(inputStream);
inputStream.close();
} catch (IOException e) {
_log.error("Error reading GTFS-rt file to byte array, skipping to next file: " + e);
continue;

0 comments on commit 7c740c3

Please sign in to comment.
You can’t perform that action at this time.