From 0f0c423480f93523eb17b5663b5a0935575aba48 Mon Sep 17 00:00:00 2001 From: Matt Tucker Date: Wed, 21 Feb 2007 17:38:05 +0000 Subject: [PATCH] Small tweak. git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@7234 b35dd754-fafc-0310-a699-88a17e54d16e --- source/org/jivesoftware/smack/PacketWriter.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/org/jivesoftware/smack/PacketWriter.java b/source/org/jivesoftware/smack/PacketWriter.java index a52ccee1b..6e0472e0f 100644 --- a/source/org/jivesoftware/smack/PacketWriter.java +++ b/source/org/jivesoftware/smack/PacketWriter.java @@ -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();