mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-22 20:12:07 +01:00
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').
This commit is contained in:
parent
9006ccf291
commit
39382b8b38
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue