From: David ‘Bombe’ Roden Date: Thu, 19 Mar 2009 20:20:53 +0000 (+0100) Subject: Rename “fcpAdapter” to “fcpListener”. X-Git-Tag: v0.1.1~88 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=1555e0cac7e8fda8a301941497ce64a8b3244990;hp=11a8b925cffae24f5b43570bf593044e7e71e2de;p=jFCPlib.git Rename “fcpAdapter” to “fcpListener”. --- diff --git a/src/net/pterodactylus/fcp/highlevel/FcpClient.java b/src/net/pterodactylus/fcp/highlevel/FcpClient.java index f9445c9..a5fba45 100644 --- a/src/net/pterodactylus/fcp/highlevel/FcpClient.java +++ b/src/net/pterodactylus/fcp/highlevel/FcpClient.java @@ -192,7 +192,7 @@ public class FcpClient { */ public Set getPeers() throws IOException, FcpException { final Set peers = new HashSet(); - ExtendedFcpAdapter fcpAdapter = new ExtendedFcpAdapter() { + ExtendedFcpAdapter fcpListener = new ExtendedFcpAdapter() { /** * {@inheritDoc} @@ -210,19 +210,19 @@ public class FcpClient { completionLatch.countDown(); } }; - fcpConnection.addFcpListener(fcpAdapter); + fcpConnection.addFcpListener(fcpListener); fcpConnection.sendMessage(new ListPeers("list-peers")); try { while (true) { try { - fcpAdapter.complete(); + fcpListener.complete(); break; } catch (InterruptedException e) { /* ignore, we’ll loop. */ } } } finally { - fcpConnection.removeFcpListener(fcpAdapter); + fcpConnection.removeFcpListener(fcpListener); } if (fcpListener.getFcpException() != null) { throw fcpListener.getFcpException();