diff options
| author | Kristian Evers <kristianevers@gmail.com> | 2021-02-19 08:14:59 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-19 08:14:59 +0100 |
| commit | 584a475207fee922229f9480720e9645a3f1e989 (patch) | |
| tree | d4bbf412f92710d2035a2c0995ef80dd5084fd34 | |
| parent | ac7b1b16388a91f34cc7936b924fe664b0a5a155 (diff) | |
| parent | 6353da92f1284f9a46e94ccc782278c259d69166 (diff) | |
| download | PROJ-584a475207fee922229f9480720e9645a3f1e989.tar.gz PROJ-584a475207fee922229f9480720e9645a3f1e989.zip | |
Merge pull request #2532 from snowman2/autoclose
BUG: Close database connection when autoclose set to True
| -rw-r--r-- | include/proj/internal/io_internal.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/proj/internal/io_internal.hpp b/include/proj/internal/io_internal.hpp index 8f1c3d68..3187440f 100644 --- a/include/proj/internal/io_internal.hpp +++ b/include/proj/internal/io_internal.hpp @@ -201,7 +201,7 @@ struct projCppContext { return auxDbPaths_; } - void setAutoCloseDb(bool autoClose) { autoCloseDb_ = autoClose; } + void setAutoCloseDb(bool autoClose) { autoCloseDb_ = autoClose; autoCloseDbIfNeeded(); } inline bool getAutoCloseDb() const { return autoCloseDb_; } // cppcheck-suppress functionStatic |
