Skip to content

Commit

Permalink
tomd: use a daemon thread so that JVM shutdown is not prevented -- fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
scarytom committed Jul 25, 2014
1 parent 8eb0cff commit 47f83a1
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public final class NonBlockingStatsDClient extends ConvenienceMethodProvidingSta
@Override public Thread newThread(Runnable r) {
Thread result = delegate.newThread(r);
result.setName("StatsD-" + result.getName());
result.setDaemon(true);
return result;
}
});
Expand Down

0 comments on commit 47f83a1

Please sign in to comment.