[robonect] Fix breaking common HttpClient on shutdown (#9429)

Signed-off-by: Stefan Triller <github@stefantriller.de>
This commit is contained in:
t2000 2020-12-19 20:22:32 +01:00 committed by GitHub
parent 4409cf63c9
commit 7e5f43527b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -379,15 +379,9 @@ 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);
}
}
/**
* method to inject the robonect client to be used in test cases to allow mocking.