diff options
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/termai/main.go | 3 |
1 files changed, 0 insertions, 3 deletions
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) } |
