From 7b1090d027bb0ccbb6f56c72fd22939760748f97 Mon Sep 17 00:00:00 2001 From: Kacper Malachowski Date: Sun, 25 Feb 2024 14:08:03 +0100 Subject: [PATCH] Ignore empty messages --- app.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app.go b/app.go index 3978615..79a5b6f 100644 --- a/app.go +++ b/app.go @@ -75,6 +75,10 @@ func (a *App) Connect(address string) string { for { message := <-a.client.ReadChan + if message == "" { + continue + } + runtime.LogInfo(a.ctx, fmt.Sprint(message)) runtime.EventsEmit(a.ctx, "message", message) }