From ca8222868cc9467a49dea172db7f0ac80d94faff Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Wed, 13 Jan 2010 01:54:09 +0000
Subject: [PATCH] Fix for issue 4484 (Follow Referrals functionality is broken). The code was not complete.  Fix some issues in different areas.

---
 opends/src/guitools/org/opends/guitools/controlpanel/browser/NodeSearcherQueue.java |   16 +++++++---------
 1 files changed, 7 insertions(+), 9 deletions(-)

diff --git a/opends/src/guitools/org/opends/guitools/controlpanel/browser/NodeSearcherQueue.java b/opends/src/guitools/org/opends/guitools/controlpanel/browser/NodeSearcherQueue.java
index d460d12..b637318 100644
--- a/opends/src/guitools/org/opends/guitools/controlpanel/browser/NodeSearcherQueue.java
+++ b/opends/src/guitools/org/opends/guitools/controlpanel/browser/NodeSearcherQueue.java
@@ -22,7 +22,7 @@
  * CDDL HEADER END
  *
  *
- *      Copyright 2008-2009 Sun Microsystems, Inc.
+ *      Copyright 2008-2010 Sun Microsystems, Inc.
  */
 
 package org.opends.guitools.controlpanel.browser;
@@ -233,9 +233,10 @@
    */
   public void run() {
     boolean interrupted = false;
-
-    while (!interrupted) {
-      try {
+    while (!interrupted)
+    {
+      try
+      {
         // Fetch and process a node also
         // taking care of update events
         AbstractNodeTask task = fetch();
@@ -246,11 +247,8 @@
         interrupted = true;
       }
       catch(Exception x) {
-        // At this level, either it's an interruption
-        // either it's a bug...
-        if (! (x instanceof InterruptedException)) {
-          x.printStackTrace();
-        }
+        // At this level it is a bug...
+        x.printStackTrace();
       }
     }
   }

--
Gitblit v1.10.0