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