From: David ‘Bombe’ Roden Date: Thu, 19 Mar 2009 20:20:14 +0000 (+0100) Subject: Don’t forget to throw the FCP exception. X-Git-Tag: v0.1.1~89 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=11a8b925cffae24f5b43570bf593044e7e71e2de;p=jFCPlib.git Don’t forget to throw the FCP exception. --- diff --git a/src/net/pterodactylus/fcp/highlevel/FcpClient.java b/src/net/pterodactylus/fcp/highlevel/FcpClient.java index fe322e3..f9445c9 100644 --- a/src/net/pterodactylus/fcp/highlevel/FcpClient.java +++ b/src/net/pterodactylus/fcp/highlevel/FcpClient.java @@ -224,6 +224,9 @@ public class FcpClient { } finally { fcpConnection.removeFcpListener(fcpAdapter); } + if (fcpListener.getFcpException() != null) { + throw fcpListener.getFcpException(); + } return peers; }