From: David ‘Bombe’ Roden Date: Tue, 24 Mar 2009 14:53:14 +0000 (+0100) Subject: Enable “WatchGlobal” mode directly after connecting. X-Git-Tag: v0.1.1~71 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=fa22404c6b514de83828117b9885a1da1a851481;p=jFCPlib.git Enable “WatchGlobal” mode directly after connecting. --- diff --git a/src/net/pterodactylus/fcp/highlevel/FcpClient.java b/src/net/pterodactylus/fcp/highlevel/FcpClient.java index 30424ac..aa2c8f1 100644 --- a/src/net/pterodactylus/fcp/highlevel/FcpClient.java +++ b/src/net/pterodactylus/fcp/highlevel/FcpClient.java @@ -52,6 +52,7 @@ import net.pterodactylus.fcp.PersistentGet; import net.pterodactylus.fcp.ProtocolError; import net.pterodactylus.fcp.RemovePeer; import net.pterodactylus.fcp.SSKKeypair; +import net.pterodactylus.fcp.WatchGlobal; import net.pterodactylus.util.thread.ObjectWrapper; /** @@ -164,6 +165,8 @@ public class FcpClient { fcpConnection.connect(); ClientHello clientHello = new ClientHello(name); fcpConnection.sendMessage(clientHello); + WatchGlobal watchGlobal = new WatchGlobal(true); + fcpConnection.sendMessage(watchGlobal); } /**