Add finish() method to Connection.
[sonitus.git] / src / main / java / net / pterodactylus / sonitus / data / filter / ExternalFilter.java
index c3ab508..3b2b6b1 100644 (file)
@@ -116,6 +116,11 @@ public abstract class ExternalFilter implements Filter {
                                protected void feed(byte[] buffer) throws IOException {
                                        processInput.write(buffer);
                                }
+
+                               @Override
+                               protected void finish() throws IOException {
+                                       processInput.close();
+                               }
                        }).start();
                } catch (IOException ioe1) {