diff options
author | Vitaly Takmazov | 2016-12-07 15:58:21 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2016-12-07 15:58:21 +0300 |
commit | cce0f14568b274d5b92faa94ebad549e1e104616 (patch) | |
tree | c8bff3170e5aa116f3618973a6bc4bfdf9598ef5 /juick-xmpp-ft/src/main/java | |
parent | eea7abf829ed9b011d34d6ac8131fe3057b1b6f6 (diff) |
juick-xmpp-ft: enable ping manager
Diffstat (limited to 'juick-xmpp-ft/src/main/java')
-rw-r--r-- | juick-xmpp-ft/src/main/java/com/juick/components/XMPPFTServer.java | 3 |
1 files changed, 3 insertions, 0 deletions
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 { |