mirror of https://github.com/gdamore/tcell.git
fixes #169 data race between inputLoop and mainLoop
This commit is contained in:
parent
ade89fc294
commit
061d51a604
|
@ -1298,8 +1298,8 @@ func (t *tScreen) mainLoop() {
|
|||
|
||||
func (t *tScreen) inputLoop() {
|
||||
|
||||
chunk := make([]byte, 128)
|
||||
for {
|
||||
chunk := make([]byte, 128)
|
||||
n, e := t.in.Read(chunk)
|
||||
switch e {
|
||||
case io.EOF:
|
||||
|
|
Loading…
Reference in New Issue