mirror of https://github.com/chzyer/readline.git
fix notify back
This commit is contained in:
parent
fa8d922787
commit
17b536725b
6
std.go
6
std.go
|
@ -93,7 +93,11 @@ loop:
|
||||||
select {
|
select {
|
||||||
case <-c.notify:
|
case <-c.notify:
|
||||||
c.read, c.err = c.r.Read(c.data)
|
c.read, c.err = c.r.Read(c.data)
|
||||||
c.notify <- struct{}{}
|
select {
|
||||||
|
case c.notify <- struct{}{}:
|
||||||
|
case <-c.stop:
|
||||||
|
break loop
|
||||||
|
}
|
||||||
case <-c.stop:
|
case <-c.stop:
|
||||||
break loop
|
break loop
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue