Close all streams when finishing.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 16 Mar 2013 00:51:15 +0000 (01:51 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 16 Mar 2013 00:51:15 +0000 (01:51 +0100)
src/main/java/net/pterodactylus/sonitus/data/filter/ExternalFilter.java

index 3b2b6b1..5b4fc2c 100644 (file)
@@ -120,6 +120,8 @@ public abstract class ExternalFilter implements Filter {
                                @Override
                                protected void finish() throws IOException {
                                        processInput.close();
+                                       processOutput.close();
+                                       processError.close();
                                }
                        }).start();
                } catch (IOException ioe1) {