summaryrefslogtreecommitdiffhomepage
path: root/cmd
diff options
context:
space:
mode:
authorKujtim Hoxha <[email protected]>2025-03-23 14:56:32 +0100
committerKujtim Hoxha <[email protected]>2025-03-23 15:00:12 +0100
commit7844cacb257b14087bcb12764466ee0eeeb1921b (patch)
treeccc9df7140e38e9fa55d190fc9e9f294e3987583 /cmd
parent4b0ea68d7af9a6031a7ffda7ad66e0cb83315750 (diff)
downloadopencode-7844cacb257b14087bcb12764466ee0eeeb1921b.tar.gz
opencode-7844cacb257b14087bcb12764466ee0eeeb1921b.zip
add help
Diffstat (limited to 'cmd')
-rw-r--r--cmd/termai/main.go3
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)
}