Skip to content

Commit

Permalink
sync on socket reconnect, fix #47
Browse files Browse the repository at this point in the history
  • Loading branch information
shinebayar-g committed Jan 27, 2023
1 parent 3cfdf54 commit bf31f76
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down

0 comments on commit bf31f76

Please sign in to comment.