fixes #169 data race between inputLoop and mainLoop

This commit is contained in:
Garrett D'Amore 2017-11-24 15:55:02 -08:00
parent ade89fc294
commit 061d51a604
1 changed files with 1 additions and 1 deletions

View File

@ -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: