]> git.basschouten.com Git - openhab-addons.git/commitdiff
[robonect] Fix breaking common HttpClient on shutdown (#9429)
authort2000 <t2000@users.noreply.github.com>
Sat, 19 Dec 2020 19:22:32 +0000 (20:22 +0100)
committerGitHub <noreply@github.com>
Sat, 19 Dec 2020 19:22:32 +0000 (20:22 +0100)
Signed-off-by: Stefan Triller <github@stefantriller.de>
bundles/org.openhab.binding.robonect/src/main/java/org/openhab/binding/robonect/internal/handler/RobonectHandler.java

index 9cee1408bf997785542f940b3555d3ddc1fbdee3..f30f26ac9c07accc477452839c6e19c1bdcfc550 100644 (file)
@@ -379,14 +379,8 @@ public class RobonectHandler extends BaseThingHandler {
             pollingJob.cancel(true);
             pollingJob = null;
         }
-        try {
-            if (httpClient != null) {
-                httpClient.stop();
-                httpClient = null;
-            }
-        } catch (Exception e) {
-            logger.debug("Could not stop http client", e);
-        }
+
+        httpClient = null;
     }
 
     /**