From: David ‘Bombe’ Roden Date: Thu, 6 Jun 2013 04:38:04 +0000 (+0200) Subject: If a connection within this filter has caught an exception, rethrow it here. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=a0057669de4cb82f613d0a2a765f145279cf2233;p=sonitus.git If a connection within this filter has caught an exception, rethrow it here. --- diff --git a/src/main/java/net/pterodactylus/sonitus/data/filter/PipelineFilter.java b/src/main/java/net/pterodactylus/sonitus/data/filter/PipelineFilter.java index 7cc8d9a..e4c2d81 100644 --- a/src/main/java/net/pterodactylus/sonitus/data/filter/PipelineFilter.java +++ b/src/main/java/net/pterodactylus/sonitus/data/filter/PipelineFilter.java @@ -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); }