Oopsie
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
package be.naaturel.boardmateapi;
|
package be.naaturel.boardmateapi;
|
||||||
|
|
||||||
|
import be.naaturel.boardmateapi.common.exceptions.ServiceException;
|
||||||
import be.naaturel.boardmateapi.common.helpers.Logger;
|
import be.naaturel.boardmateapi.common.helpers.Logger;
|
||||||
import be.naaturel.boardmateapi.services.MqttService;
|
import be.naaturel.boardmateapi.services.MqttService;
|
||||||
import jakarta.annotation.PostConstruct;
|
import jakarta.annotation.PostConstruct;
|
||||||
@@ -30,7 +31,11 @@ public class MqttStarter {
|
|||||||
|
|
||||||
@PreDestroy
|
@PreDestroy
|
||||||
public void stop() {
|
public void stop() {
|
||||||
|
try {
|
||||||
service.disconnect();
|
service.disconnect();
|
||||||
|
} catch (ServiceException se){
|
||||||
|
Logger.displayError("Failed to disconnect : " + se.getMessage());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setCallback(){
|
private void setCallback(){
|
||||||
|
|||||||
Reference in New Issue
Block a user