Skip to content

Commit aace85a

Browse files
committed
all: don't close watch if read returns errUnavailable
1 parent 68b1fe0 commit aace85a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

clipboard_linux.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,7 @@ func watch(ctx context.Context, t Format) <-chan []byte {
139139
close(recv)
140140
return
141141
case <-ti.C:
142-
b, err := read(t)
143-
if err != nil {
144-
close(recv)
145-
return
146-
}
142+
b := Read(t)
147143
if b == nil {
148144
continue
149145
}

0 commit comments

Comments
 (0)