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:
parent
256b3060aa
commit
a414256747
1 changed files with 4 additions and 0 deletions
4
main.go
4
main.go
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue