Skip to content

Commit c18fcbd

Browse files
authored
Clear sExtensionPath if extension fails to load (#2252)
1 parent cd56c84 commit c18fcbd

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

LiteCore/Storage/SQLiteDataFile.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ namespace litecore {
238238
#endif
239239

240240
if ( !extension::check_extension_version(pluginPath, extensionEntry->second) ) {
241+
sExtensionPath.clear();
241242
error::_throw(error::UnsupportedOperation,
242243
"Extension '%s' is not found or not compatible with this version of Couchbase Lite",
243244
name.c_str());

0 commit comments

Comments
 (0)