Skip to content
This repository was archived by the owner on Mar 27, 2025. It is now read-only.

Commit b16aea0

Browse files
Fabio Falzoipippolo84
authored andcommitted
Add some time to gracefully shutdown connection with broker
Signed-off-by: Fabio Falzoi <fabio@develer.com>
1 parent ede22ae commit b16aea0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

install.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ func registerDeviceViaMQTT(config Config) {
150150
err = registerDevice(client, config.ID)
151151
check(err, "RegisterDevice")
152152

153-
client.Disconnect(0)
153+
client.Disconnect(100)
154154
fmt.Println("MQTT connection successful")
155155

156156
}

0 commit comments

Comments
 (0)