From 7844cacb257b14087bcb12764466ee0eeeb1921b Mon Sep 17 00:00:00 2001 From: Kujtim Hoxha Date: Sun, 23 Mar 2025 14:56:32 +0100 Subject: add help --- cmd/termai/main.go | 3 --- 1 file changed, 3 deletions(-) (limited to 'cmd') diff --git a/cmd/termai/main.go b/cmd/termai/main.go index 5b71728d8..e1e506b86 100644 --- a/cmd/termai/main.go +++ b/cmd/termai/main.go @@ -48,11 +48,8 @@ func setupSubscriptions(ctx context.Context) (chan tea.Msg, func()) { wg.Done() }() } - // cleanup function to be invoked when program is terminated. return ch, func() { cancel() - // Wait for relays to finish before closing channel, to avoid sends - // to a closed channel, which would result in a panic. wg.Wait() close(ch) } -- cgit v1.2.3