From 856b4a60907bf7cef2b25f19c7f87202e58f247b Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Tue, 26 Aug 2014 12:04:52 +0200 Subject: [PATCH] Make FaultTolerantNegotiator respect packetReplyTimeout --- .../smackx/filetransfer/FaultTolerantNegotiator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/filetransfer/FaultTolerantNegotiator.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/filetransfer/FaultTolerantNegotiator.java index cdcb4e043..6feb8e04d 100644 --- a/smack-extensions/src/main/java/org/jivesoftware/smackx/filetransfer/FaultTolerantNegotiator.java +++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/filetransfer/FaultTolerantNegotiator.java @@ -100,7 +100,7 @@ public class FaultTolerantNegotiator extends StreamNegotiator { Future future; try { i++; - future = service.poll(10, TimeUnit.SECONDS); + future = service.poll(connection.getPacketReplyTimeout(), TimeUnit.MILLISECONDS); } catch (InterruptedException e) { continue;