Skip to content

Commit

Permalink
BUG: Goroutine leak.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesharr committed Jan 12, 2014
1 parent 6d403a6 commit e04b9af
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions expect.go
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,8 @@ func (exp *Expect) startReader() {

// Drain queue
for _, read := range queue {
// TODO - this hangs if the user exp.Close()s with data left to read.
// exp.Close() should signal to us that there's no more listeners left.
exp.readChan <- read
}
queue = nil
Expand Down

0 comments on commit e04b9af

Please sign in to comment.