Skip to content
This repository has been archived by the owner on Nov 28, 2020. It is now read-only.

Commit

Permalink
fix bug causing warning to occur even when things worked fine with
Browse files Browse the repository at this point in the history
hub_ip.
  • Loading branch information
nospa authored and nospa committed Mar 5, 2020
1 parent b453ad3 commit 0f04475
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -618,8 +618,7 @@ private void putHttp(String urlFilePath, String content) {
outputStream.write(content);
outputStream.close();
String response = IOUtils.toString(httpConnection.getInputStream());
// logger.trace("response back is :{}", response);
if (!"true".contains(response)) {
if (!response.contains("true")) {
logger.warn(
"Can not reach the espMilightHub directly, check you have entered the correct HUB_IP in the Things setup");
}
Expand All @@ -645,9 +644,7 @@ public void initialize() {

@Override
public void dispose() {
logger.info("Bridge dispose() called, disconnecting from the MQTT broker.");
disconnectMQTT();

if (sendQueuedMQTTTimerJob != null) {
sendQueuedMQTTTimerJob.cancel(true);
sendQueuedMQTTTimerJob = null;
Expand Down

0 comments on commit 0f04475

Please sign in to comment.