diff options
author | Cătălin Badea <catalin.badea392@gmail.com> | 2012-09-15 14:20:25 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2012-09-18 06:31:48 (GMT) |
commit | 3922b29d87df67657cc0a9a7f37290967cec725b (patch) | |
tree | 9d34ddfb11879473352bf7a6c4aaa957beb1ea78 | |
parent | 8d87caed5e2f47aeaaabc4b8670fce4d3753d17b (diff) | |
download | swift-3922b29d87df67657cc0a9a7f37290967cec725b.zip swift-3922b29d87df67657cc0a9a7f37290967cec725b.tar.bz2 |
Fix HistoryStorage from crashing
Fix a crash related to HistoryStorage asynchronous access.
License: This patch is BSD-licensed, see Documentation/Licenses/BSD-simplified.txt for details.
-rw-r--r-- | Swiften/History/SQLiteHistoryStorage.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Swiften/History/SQLiteHistoryStorage.cpp b/Swiften/History/SQLiteHistoryStorage.cpp index e86153a..04bd00f 100644 --- a/Swiften/History/SQLiteHistoryStorage.cpp +++ b/Swiften/History/SQLiteHistoryStorage.cpp @@ -26,10 +26,7 @@ inline std::string getEscapedString(const std::string& s) { namespace Swift { SQLiteHistoryStorage::SQLiteHistoryStorage(const std::string& file) : db_(0) { - sqlite3_vfs vfs; - - sqlite3async_initialize(NULL, true); - sqlite3_vfs_register(&vfs, false); + sqlite3async_initialize(NULL, false); thread_ = new boost::thread(boost::bind(&SQLiteHistoryStorage::run, this)); |