From bf31f76a5c429992c75c79484aa0b91ff1e7e756 Mon Sep 17 00:00:00 2001 From: Shinebayar Gansukh <3091558+shinebayar-g@users.noreply.github.com> Date: Thu, 26 Jan 2023 19:55:44 -0800 Subject: [PATCH] sync on socket reconnect, fix #47 --- main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/main.go b/main.go index 7b62ec0..0586e4f 100644 --- a/main.go +++ b/main.go @@ -82,6 +82,7 @@ func main() { if err != nil { log.Println("ufw-docker-automated: Event error:", err) ctx, client = reconnect() + go ufwhandler.Sync(ctx, createChannel, client) messages, errors = streamEvents(ctx, client) } }