lets wait a little for the background thread to shut first so that threads tend to shut down nicely

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@428419 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
James Strachan 2006-08-03 15:00:14 +00:00
parent 6cf2169533
commit 4d2b20b1b2
1 changed files with 3 additions and 0 deletions

View File

@ -112,5 +112,8 @@ public class TransportStatusDetector implements Service,Runnable{
}
public void stop() throws Exception{
started.set(false);
if (runner != null) {
runner.join(getSweepInterval() * 5);
}
}
}