From 1555e0cac7e8fda8a301941497ce64a8b3244990 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 19 Mar 2009 21:20:53 +0100 Subject: [PATCH] =?utf8?q?Rename=20=E2=80=9CfcpAdapter=E2=80=9D=20to=20?= =?utf8?q?=E2=80=9CfcpListener=E2=80=9D.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/net/pterodactylus/fcp/highlevel/FcpClient.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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(); -- 2.7.4