mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-26 14:02:06 +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.
|
// out a space character each time it runs to keep the TCP/IP connection open.
|
||||||
int keepAliveInterval = SmackConfiguration.getKeepAliveInterval();
|
int keepAliveInterval = SmackConfiguration.getKeepAliveInterval();
|
||||||
if (keepAliveInterval > 0) {
|
if (keepAliveInterval > 0) {
|
||||||
KeepAliveTask target = new KeepAliveTask(keepAliveInterval);
|
KeepAliveTask task = new KeepAliveTask(keepAliveInterval);
|
||||||
keepAliveThread = new Thread(target);
|
keepAliveThread = new Thread(task);
|
||||||
target.setThread(keepAliveThread);
|
task.setThread(keepAliveThread);
|
||||||
keepAliveThread.setDaemon(true);
|
keepAliveThread.setDaemon(true);
|
||||||
keepAliveThread.setName("Smack Keep Alive (" + connection.connectionCounterValue + ")");
|
keepAliveThread.setName("Smack Keep Alive (" + connection.connectionCounterValue + ")");
|
||||||
keepAliveThread.start();
|
keepAliveThread.start();
|
||||||
|
|
Loading…
Reference in a new issue