From cce0f14568b274d5b92faa94ebad549e1e104616 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 7 Dec 2016 15:58:21 +0300 Subject: juick-xmpp-ft: enable ping manager --- juick-xmpp-ft/src/main/java/com/juick/components/XMPPFTServer.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'juick-xmpp-ft/src') diff --git a/juick-xmpp-ft/src/main/java/com/juick/components/XMPPFTServer.java b/juick-xmpp-ft/src/main/java/com/juick/components/XMPPFTServer.java index 7da2099e..528604dd 100644 --- a/juick-xmpp-ft/src/main/java/com/juick/components/XMPPFTServer.java +++ b/juick-xmpp-ft/src/main/java/com/juick/components/XMPPFTServer.java @@ -13,6 +13,7 @@ import rocks.xmpp.extensions.component.accept.ExternalComponent; import rocks.xmpp.extensions.filetransfer.FileTransfer; import rocks.xmpp.extensions.filetransfer.FileTransferManager; import rocks.xmpp.extensions.oob.model.x.OobX; +import rocks.xmpp.extensions.ping.PingManager; import java.io.IOException; import java.net.URI; @@ -37,6 +38,8 @@ public class XMPPFTServer implements AutoCloseable { NumberUtils.toInt(env.getProperty("component_port", "5347"), 5347)); String tmpDir = env.getProperty("upload_tmp_dir", "/tmp"); String juickJid = env.getProperty("xmppbot_jid", "juick@juick.com/Juick"); + PingManager pingManager = component.getManager(PingManager.class); + pingManager.setEnabled(true); FileTransferManager fileTransferManager = component.getManager(FileTransferManager.class); fileTransferManager.addFileTransferOfferListener(e -> { try { -- cgit v1.2.3