From: David ‘Bombe’ Roden Date: Tue, 24 Nov 2015 19:28:59 +0000 (+0100) Subject: Forward EOF exception to handler X-Git-Tag: v0.1.4^2~17 X-Git-Url: https://git.pterodactylus.net/?p=jFCPlib.git;a=commitdiff_plain;h=feab8df08a2c70e7854027cfe28b45726b91c7d5 Forward EOF exception to handler --- diff --git a/src/main/java/net/pterodactylus/fcp/FcpConnectionHandler.java b/src/main/java/net/pterodactylus/fcp/FcpConnectionHandler.java index ad3e3f3..256efef 100644 --- a/src/main/java/net/pterodactylus/fcp/FcpConnectionHandler.java +++ b/src/main/java/net/pterodactylus/fcp/FcpConnectionHandler.java @@ -18,6 +18,7 @@ package net.pterodactylus.fcp; +import java.io.EOFException; import java.io.IOException; import java.io.InputStream; import java.nio.ByteBuffer; @@ -78,6 +79,7 @@ class FcpConnectionHandler implements Runnable { String line = readLine(); logger.log(Level.FINEST, String.format("read line: %1$s", line)); if (line == null) { + throwable = new EOFException(); break; } if (line.length() == 0) {