[robonect] Fix breaking common HttpClient on shutdown (#9429)
Signed-off-by: Stefan Triller <github@stefantriller.de>
This commit is contained in:
parent
4409cf63c9
commit
7e5f43527b
@ -379,14 +379,8 @@ public class RobonectHandler extends BaseThingHandler {
|
|||||||
pollingJob.cancel(true);
|
pollingJob.cancel(true);
|
||||||
pollingJob = null;
|
pollingJob = null;
|
||||||
}
|
}
|
||||||
try {
|
|
||||||
if (httpClient != null) {
|
httpClient = null;
|
||||||
httpClient.stop();
|
|
||||||
httpClient = null;
|
|
||||||
}
|
|
||||||
} catch (Exception e) {
|
|
||||||
logger.debug("Could not stop http client", e);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user