Fix stop_mqtt_channel
This commit is contained in:
parent
2287de521e
commit
569939a7b3
1 changed files with 1 additions and 1 deletions
|
|
@ -213,7 +213,7 @@ func (c *MQTTChannel) Stop(_ context.Context) error {
|
|||
logger.InfoC("mqtt", "Stopping MQTT channel")
|
||||
c.SetRunning(false)
|
||||
|
||||
if c.client != nil && c.client.IsConnected() {
|
||||
if c.client != nil {
|
||||
c.client.Disconnect(500)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue