From 51d717e93adf69363f6a896a2976250c1bc21fa1 Mon Sep 17 00:00:00 2001 From: Mike Hearn Date: Wed, 24 Jul 2013 14:58:33 +0200 Subject: [PATCH] Payment channels: Make the ProtobufParser timer daemon and labelled. --- .../bitcoin/protocols/niowrapper/ProtobufParser.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/core/src/main/java/com/google/bitcoin/protocols/niowrapper/ProtobufParser.java b/core/src/main/java/com/google/bitcoin/protocols/niowrapper/ProtobufParser.java index 6f2522329..a025f7d2f 100644 --- a/core/src/main/java/com/google/bitcoin/protocols/niowrapper/ProtobufParser.java +++ b/core/src/main/java/com/google/bitcoin/protocols/niowrapper/ProtobufParser.java @@ -16,15 +16,15 @@ package com.google.bitcoin.protocols.niowrapper; +import com.google.bitcoin.core.Utils; +import com.google.protobuf.ByteString; +import com.google.protobuf.MessageLite; + import java.nio.ByteBuffer; import java.nio.ByteOrder; import java.util.Timer; import java.util.TimerTask; -import com.google.bitcoin.core.Utils; -import com.google.protobuf.ByteString; -import com.google.protobuf.MessageLite; - import static com.google.common.base.Preconditions.checkNotNull; import static com.google.common.base.Preconditions.checkState; @@ -72,8 +72,8 @@ public class ProtobufParser { private TimerTask timeoutTask; private long timeoutMillis; - // A timer which manages expiring channels as their timeouts occur - private static final Timer timeoutTimer = new Timer(); + // A timer which manages expiring connections as their timeouts occur (if configured). + private static final Timer timeoutTimer = new Timer("ProtobufParser timeouts", true); /** * Creates a new protobuf handler.