Don’t forget to throw the FCP exception.
authorDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Thu, 19 Mar 2009 20:20:14 +0000 (21:20 +0100)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Thu, 19 Mar 2009 22:09:10 +0000 (23:09 +0100)
src/net/pterodactylus/fcp/highlevel/FcpClient.java

index fe322e3..f9445c9 100644 (file)
@@ -224,6 +224,9 @@ public class FcpClient {
                } finally {
                        fcpConnection.removeFcpListener(fcpAdapter);
                }
+               if (fcpListener.getFcpException() != null) {
+                       throw fcpListener.getFcpException();
+               }
                return peers;
        }