From 37f059899ef986f45861e2470c4b355d857759c0 Mon Sep 17 00:00:00 2001 From: Holger Cremer Date: Thu, 4 Jan 2018 22:58:20 +0100 Subject: [PATCH] fixes empty people for last will --- mqtt/mqtt.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mqtt/mqtt.go b/mqtt/mqtt.go index 51eb118..1fafbfd 100644 --- a/mqtt/mqtt.go +++ b/mqtt/mqtt.go @@ -191,7 +191,7 @@ func defaultCertPool(certFile string) *x509.CertPool { } func emptyPeopleAndDevices() string { - pad := PeopleAndDevices{} + pad := PeopleAndDevices{People:[]Person{}} bytes, err := json.Marshal(pad) if err != nil { mqttLogger.WithError(err).Panic()