forked from mirror/go-sqlcipher
Fix data race introduced on 605d9d08
This commit will fix a data race introduced on 605d9d08
and also
make sure travis CI will now check for data races.
This commit is contained in:
parent
51f43971ab
commit
6c0a6bb9cd
|
@ -10,4 +10,4 @@ before_install:
|
||||||
- go get golang.org/x/tools/cmd/cover
|
- go get golang.org/x/tools/cmd/cover
|
||||||
script:
|
script:
|
||||||
- $HOME/gopath/bin/goveralls -repotoken 3qJVUE0iQwqnCbmNcDsjYu1nh4J4KIFXx
|
- $HOME/gopath/bin/goveralls -repotoken 3qJVUE0iQwqnCbmNcDsjYu1nh4J4KIFXx
|
||||||
- go test -v . -tags "libsqlite3"
|
- go test -race -v . -tags "libsqlite3"
|
||||||
|
|
|
@ -847,7 +847,6 @@ func (rc *SQLiteRows) Close() error {
|
||||||
}
|
}
|
||||||
if rc.done != nil {
|
if rc.done != nil {
|
||||||
close(rc.done)
|
close(rc.done)
|
||||||
rc.done = nil
|
|
||||||
}
|
}
|
||||||
if rc.cls {
|
if rc.cls {
|
||||||
return rc.s.Close()
|
return rc.s.Close()
|
||||||
|
|
Loading…
Reference in New Issue