Skip to content

Commit

Permalink
Corrected Recordset Lock Sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
khaf committed Jun 11, 2015
1 parent d3842f2 commit 6ab37ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions recordset.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,9 @@ func (rcs *Recordset) signalEnd() {
}

func (rcs *Recordset) sendError(err error) {
rcs.chanLock.Lock()
defer rcs.chanLock.Unlock()
if rcs.IsActive() {
rcs.chanLock.Lock()
defer rcs.chanLock.Unlock()
rcs.Errors <- err
}
}

0 comments on commit 6ab37ae

Please sign in to comment.