mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-12-22 18:48:00 +01:00
Small tweaks.
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@1986 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
98d41485d4
commit
40624c9c0b
1 changed files with 3 additions and 3 deletions
|
@ -424,11 +424,11 @@ public class XMPPConnection {
|
|||
public void close() {
|
||||
// Set presence to offline.
|
||||
packetWriter.sendPacket(new Presence(Presence.Type.UNAVAILABLE));
|
||||
packetWriter.shutdown();
|
||||
packetReader.shutdown();
|
||||
// Wait 100 ms for processes to clean-up, then shutdown.
|
||||
packetWriter.shutdown();
|
||||
// Wait 150 ms for processes to clean-up, then shutdown.
|
||||
try {
|
||||
Thread.sleep(100);
|
||||
Thread.sleep(150);
|
||||
}
|
||||
catch (Exception e) { }
|
||||
try {
|
||||
|
|
Loading…
Reference in a new issue