From 4b97ddb9ecb9a47ff4174865aeb0283ca8003a46 Mon Sep 17 00:00:00 2001 From: reger Date: Tue, 17 Feb 2015 03:16:10 +0100 Subject: [PATCH] stop sending crawl receipts if receiver got offline --- source/net/yacy/search/Switchboard.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/yacy/search/Switchboard.java b/source/net/yacy/search/Switchboard.java index 3908a3995..72bed5169 100644 --- a/source/net/yacy/search/Switchboard.java +++ b/source/net/yacy/search/Switchboard.java @@ -2905,7 +2905,7 @@ public final class Switchboard extends serverSwitch { // if this was performed for a remote crawl request, notify requester if ( (processCase == EventOrigin.GLOBAL_CRAWLING) && (queueEntry.initiator() != null) ) { - final Seed initiatorPeer = this.peers.get(ASCII.String(queueEntry.initiator())); + final Seed initiatorPeer = this.peers.getConnected(queueEntry.initiator()); if ( initiatorPeer != null ) { // start a thread for receipt sending to avoid a blocking here SolrDocument sd = this.index.fulltext().getDefaultConfiguration().toSolrDocument(newEntry);