From 4983727f0487349825510c10809f3af0a49adfce Mon Sep 17 00:00:00 2001
From: Neil Kindlon <nek3d@d-128-109-67.bootp.Virginia.EDU>
Date: Wed, 31 Dec 2014 14:30:07 -0500
Subject: [PATCH] Fixed bug164, closest runs slower with -id

---
 src/utils/NewChromsweep/CloseSweep.cpp | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/utils/NewChromsweep/CloseSweep.cpp b/src/utils/NewChromsweep/CloseSweep.cpp
index e1bb957e..c5e4892e 100644
--- a/src/utils/NewChromsweep/CloseSweep.cpp
+++ b/src/utils/NewChromsweep/CloseSweep.cpp
@@ -189,13 +189,11 @@ CloseSweep::rateOvlpType CloseSweep::considerRecord(const Record *cacheRec, int
 		 }
 		 // HIT IS DOWNSTREAM.
 		 // MUST FIRST DETERMINE WHETHER TO STOP SCANNING.
-		 if (currDist> abs(_minDownstreamDist[dbIdx])) {
+		 if (_context->ignoreDownstream() || currDist> abs(_minDownstreamDist[dbIdx])) {
 			 stopScanning = true;
 			 return IGNORE;
 		 }
-		 if (_context->ignoreDownstream()) {
-			 return IGNORE;
-		 }
+
 		 //Still here? Valid hit.
 		 if (currDist <= abs(_minDownstreamDist[dbIdx])) {
 			 if (currDist< abs(_minDownstreamDist[dbIdx])) {
-- 
GitLab