summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index c1fac45..f0d359a 100644
--- a/main.go
+++ b/main.go
@@ -371,11 +371,11 @@ func paste() error {
// Time out initial read
readChan := make(chan readResult, 1)
- defer close(readChan)
go func() {
b, e := ttyReader.ReadSlice(';')
readChan <- readResult{data: b, err: e}
+ close(readChan)
}()
select {