mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-26 08:12:05 +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() {
|
public void close() {
|
||||||
// Set presence to offline.
|
// Set presence to offline.
|
||||||
packetWriter.sendPacket(new Presence(Presence.Type.UNAVAILABLE));
|
packetWriter.sendPacket(new Presence(Presence.Type.UNAVAILABLE));
|
||||||
packetWriter.shutdown();
|
|
||||||
packetReader.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 {
|
try {
|
||||||
Thread.sleep(100);
|
Thread.sleep(150);
|
||||||
}
|
}
|
||||||
catch (Exception e) { }
|
catch (Exception e) { }
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in a new issue