From 39382b8b389fe8a5e2ba50cb1a3d298556f20264 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Wed, 25 Feb 2015 16:09:41 +0100 Subject: [PATCH] Shorten Smack's executor service names instead of "Smack Executor - Foo 42 (2)" use "Smack-Foo 42 (2)" since sometimes the space for the name is limited (e.g. busybox's 'ps -t'). --- .../jivesoftware/smack/util/SmackExecutorThreadFactory.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/smack-core/src/main/java/org/jivesoftware/smack/util/SmackExecutorThreadFactory.java b/smack-core/src/main/java/org/jivesoftware/smack/util/SmackExecutorThreadFactory.java index 5823435ff..c3c59d7f8 100644 --- a/smack-core/src/main/java/org/jivesoftware/smack/util/SmackExecutorThreadFactory.java +++ b/smack-core/src/main/java/org/jivesoftware/smack/util/SmackExecutorThreadFactory.java @@ -1,6 +1,6 @@ /** * - * Copyright 2014 Florian Schmaus + * Copyright 2014-2015 Florian Schmaus * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -35,7 +35,7 @@ public final class SmackExecutorThreadFactory implements ThreadFactory { @Override public Thread newThread(Runnable runnable) { Thread thread = new Thread(runnable); - thread.setName("Smack Executor - " + name + ' ' + count++ + " (" + connectionCounterValue + ")"); + thread.setName("Smack-" + name + ' ' + count++ + " (" + connectionCounterValue + ")"); thread.setDaemon(true); return thread; }