]> git.basschouten.com Git - openhab-addons.git/commitdiff
Removes extra NEEO from thread name (#15779)
authormorph166955 <53797132+morph166955@users.noreply.github.com>
Fri, 20 Oct 2023 05:44:56 +0000 (00:44 -0500)
committerGitHub <noreply@github.com>
Fri, 20 Oct 2023 05:44:56 +0000 (07:44 +0200)
Signed-off-by: Ben Rosenblum <rosenblumb@gmail.com>
bundles/org.openhab.io.neeo/src/main/java/org/openhab/io/neeo/internal/NeeoApi.java

index 4bc0c1b57eb9a3ba401755a6dce8e79894a885da..a4e4a78a9c0ee39a3bbb4ecdd59eb35586e29f57 100644 (file)
@@ -474,7 +474,7 @@ public class NeeoApi implements AutoCloseable {
         if (stackSize == 0) {
             int httpClientId = this.httpClientId + 1;
             this.httpClientId = httpClientId;
-            String httpClientIdString = "neeo-" + brainId + "-" + httpClientId;
+            String httpClientIdString = "neeo-" + brainId.substring(5) + "-" + httpClientId;
             logger.debug("getHttpClient created new client {} for brain {}", httpClientIdString, brainId);
             HttpClient httpClient = httpClientFactory.createHttpClient(httpClientIdString);
             try {