If a connection within this filter has caught an exception, rethrow it here.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 6 Jun 2013 04:38:04 +0000 (06:38 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 6 Jun 2013 20:28:13 +0000 (22:28 +0200)
src/main/java/net/pterodactylus/sonitus/data/filter/PipelineFilter.java

index 7cc8d9a..e4c2d81 100644 (file)
@@ -97,6 +97,9 @@ public class PipelineFilter extends AbstractFilter implements Filter {
 
        @Override
        public DataPacket get(int bufferSize) throws IOException {
+               if (filterConnections.get(lastFilter).ioException().isPresent()) {
+                       throw filterConnections.get(lastFilter).ioException().get();
+               }
                return lastFilter.get(bufferSize);
        }