mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-27 00:32:07 +01:00
Small tweak.
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@7234 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
1eb4841970
commit
0f0c423480
1 changed files with 3 additions and 3 deletions
|
@ -187,9 +187,9 @@ class PacketWriter {
|
|||
// out a space character each time it runs to keep the TCP/IP connection open.
|
||||
int keepAliveInterval = SmackConfiguration.getKeepAliveInterval();
|
||||
if (keepAliveInterval > 0) {
|
||||
KeepAliveTask target = new KeepAliveTask(keepAliveInterval);
|
||||
keepAliveThread = new Thread(target);
|
||||
target.setThread(keepAliveThread);
|
||||
KeepAliveTask task = new KeepAliveTask(keepAliveInterval);
|
||||
keepAliveThread = new Thread(task);
|
||||
task.setThread(keepAliveThread);
|
||||
keepAliveThread.setDaemon(true);
|
||||
keepAliveThread.setName("Smack Keep Alive (" + connection.connectionCounterValue + ")");
|
||||
keepAliveThread.start();
|
||||
|
|
Loading…
Reference in a new issue