Skip to content

Commit

Permalink
Merge pull request #993 from dajohi/unlock
Browse files Browse the repository at this point in the history
unlock mutex earlier
  • Loading branch information
maddyblue authored Sep 8, 2020
2 parents ef080b6 + d97e962 commit 083382b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion copy.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,10 @@ func (ci *copyin) setResult(result driver.Result) {
func (ci *copyin) getResult() driver.Result {
ci.Lock()
result := ci.Result
ci.Unlock()
if result == nil {
return driver.RowsAffected(0)
}
ci.Unlock()
return result
}

Expand Down

0 comments on commit 083382b

Please sign in to comment.