1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-30 07:52:06 +01:00

Improved packet timeout logic.

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2501 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Matt Tucker 2005-06-15 23:04:52 +00:00 committed by matt
parent d64eb0ffdb
commit 93ca7bc991
2 changed files with 6 additions and 2 deletions

View file

@ -154,7 +154,9 @@ class PacketReader {
break;
}
connectionIDLock.wait(waitTime);
waitTime -= System.currentTimeMillis() - start;
long now = System.currentTimeMillis();
waitTime -= now - start;
start = now;
}
}
}

View file

@ -459,7 +459,9 @@ public class XMPPConnection {
break;
}
roster.wait(waitTime);
waitTime -= System.currentTimeMillis() - start;
long now = System.currentTimeMillis();
waitTime -= now - start;
start = now;
}
}
}