mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-16 09:12:06 +01:00
SMACK-128 File Transfer Fail-over Failing. The problem was when users have set a big value for a packet timeout.
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@8377 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
b3d4f6643b
commit
41b4308936
1 changed files with 1 additions and 1 deletions
|
@ -329,7 +329,7 @@ public class Socks5TransferNegotiator extends StreamNegotiator {
|
||||||
.createPacketCollector(new PacketIDFilter(query.getPacketID()));
|
.createPacketCollector(new PacketIDFilter(query.getPacketID()));
|
||||||
connection.sendPacket(query);
|
connection.sendPacket(query);
|
||||||
|
|
||||||
Packet packet = collector.nextResult(SmackConfiguration.getPacketReplyTimeout());
|
Packet packet = collector.nextResult(10000);
|
||||||
collector.cancel();
|
collector.cancel();
|
||||||
Bytestream response;
|
Bytestream response;
|
||||||
if (packet != null && packet instanceof Bytestream) {
|
if (packet != null && packet instanceof Bytestream) {
|
||||||
|
|
Loading…
Reference in a new issue