1
0
Fork 0
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:
Matt Tucker 2007-02-21 17:38:05 +00:00 committed by matt
parent 1eb4841970
commit 0f0c423480

View file

@ -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();