[tor-commits] [metrics-lib/master] Only send end-of-stream object once.
karsten at torproject.org
karsten at torproject.org
Sun Jan 15 08:50:22 UTC 2012
commit 72f0a56a7b4608ae31f48dff9aa3007e16bbeaf0
Author: Karsten Loesing <karsten.loesing at gmx.net>
Date: Sun Jan 15 09:37:12 2012 +0100
Only send end-of-stream object once.
---
.../impl/RelayOrBridgeDescriptorReaderImpl.java | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/src/org/torproject/descriptor/impl/RelayOrBridgeDescriptorReaderImpl.java b/src/org/torproject/descriptor/impl/RelayOrBridgeDescriptorReaderImpl.java
index 8e1c3bc..1e341f5 100644
--- a/src/org/torproject/descriptor/impl/RelayOrBridgeDescriptorReaderImpl.java
+++ b/src/org/torproject/descriptor/impl/RelayOrBridgeDescriptorReaderImpl.java
@@ -148,10 +148,9 @@ public class RelayOrBridgeDescriptorReaderImpl
System.err.println("Error while reading descriptors in '"
+ directory.getAbsolutePath() + "'.");
/* TODO Handle this exception somehow. */
- } finally {
- this.descriptorQueue.setOutOfDescriptors();
}
}
+ this.descriptorQueue.setOutOfDescriptors();
}
private List<Descriptor> readFile(File file) throws IOException,
DescriptorParseException {
More information about the tor-commits
mailing list