1
0
Fork 0
mirror of https://github.com/Luzifer/culmqtt.git synced 2024-12-22 18:51:22 +00:00

Check for empty messages

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-10-20 11:55:07 +02:00
parent 256b3060aa
commit a414256747
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -81,6 +81,10 @@ func main() {
func processMessage(message string) error {
logger := log.WithField("message", message)
if message == "" {
return nil
}
switch message[0] {
case 'F':
return processFS20Message(