diff --git a/apps/routerconsole/java/src/edu/internet2/ndt/Tcpbw100.java b/apps/routerconsole/java/src/edu/internet2/ndt/Tcpbw100.java index 2db75ad49..fe0f8dcaf 100644 --- a/apps/routerconsole/java/src/edu/internet2/ndt/Tcpbw100.java +++ b/apps/routerconsole/java/src/edu/internet2/ndt/Tcpbw100.java @@ -765,8 +765,8 @@ public class Tcpbw100 extends JApplet implements ActionListener { break; } } catch (InterruptedException e) { - // do nothing. _log.warn("INFO: Thread interrupted while sleeping before starting the next test."); + break; } } } catch (Exception e) { @@ -4510,7 +4510,6 @@ public class Tcpbw100 extends JApplet implements ActionListener { /** * bigly -- must have been started with main() or runIt() */ - @SuppressWarnings("deprecation") public void killIt() { @@ -4526,45 +4525,22 @@ public class Tcpbw100 extends JApplet implements ActionListener { _sPanel.endTest(); } _log.warn("killIt()"); - boolean destroyed = false; - for (int j = 0; j < 10 && !thread_group.isDestroyed(); j++) { + Thread[] threads = new Thread[thread_group.activeCount()]; thread_group.enumerate( threads ); - int done = 0; for ( int i=0;i