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

Commit ad7e0d2

Browse files
committed
[temp] kill service if no network is available
1 parent 6916aab commit ad7e0d2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ func (p program) run() {
120120
status.mqttClient = mqttClient
121121
} else {
122122
log.Println("Connection to MQTT failed, cloud features unavailable")
123+
// TODO: temporary, fail if no connection is available
124+
os.Exit(0)
123125
}
124126

125127
if p.listenFile != "" {

0 commit comments

Comments
 (0)