From 6c0a6bb9cd9183c80883865877b76ef2e23905fc Mon Sep 17 00:00:00 2001 From: andrefsp Date: Mon, 7 Nov 2016 11:57:52 +0000 Subject: [PATCH] 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. --- .travis.yml | 2 +- sqlite3.go | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index e85e473..f9798ae 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,4 +10,4 @@ before_install: - go get golang.org/x/tools/cmd/cover script: - $HOME/gopath/bin/goveralls -repotoken 3qJVUE0iQwqnCbmNcDsjYu1nh4J4KIFXx - - go test -v . -tags "libsqlite3" + - go test -race -v . -tags "libsqlite3" diff --git a/sqlite3.go b/sqlite3.go index ac069e3..9b55ef1 100644 --- a/sqlite3.go +++ b/sqlite3.go @@ -847,7 +847,6 @@ func (rc *SQLiteRows) Close() error { } if rc.done != nil { close(rc.done) - rc.done = nil } if rc.cls { return rc.s.Close()