diff --git a/CHANGELOG.md b/CHANGELOG.md index 73f05a0021..6af312891a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ * `String` and `byte[]` are now strongly typed for comparisons and queries. This change is especially relevant when querying for a string constant on a `RealmValue` property, as now only strings will be returned. If searching for binary data is desired, then that type must be specified by the constant. In RQL (`.Filter()`) the new way to specify a binary constant is to use `RealmValueProp = bin('xyz')` or `RealmValueProp = binary('xyz')`. (Core 14.0.0-beta.0) * Sorting order of strings has changed to use standard unicode codepoint order instead of grouping similar english letters together. A noticeable change will be from "aAbBzZ" to "ABZabz". (Core 14.0.0-beta.0) * In RQL (`Filter()`), ff you want to query using `@type` operation, you must use `objectlink` to match links to objects. `object` is reserved for dictionary types. (Core 14.0.0) +* Opening file with file format 23 (Realm .NET versions ealrier than 12.0.0) in read-only mode will crash. (Core 14.0.0) ### Enhancements * Add support for passing a key paths collection (`KeyPathsCollection`) when using `IRealmCollection.SubscribeForNotifications`. Passing a `KeyPathsCollection` allows to specify which changes in properties should raise a notification. diff --git a/wrappers/src/app_cs.cpp b/wrappers/src/app_cs.cpp index f95dd221e3..9820041e24 100644 --- a/wrappers/src/app_cs.cpp +++ b/wrappers/src/app_cs.cpp @@ -296,26 +296,18 @@ extern "C" { } REALM_EXPORT void shared_app_reset_for_testing(SharedApp& app) { + + if (!app->sync_manager()->get_logger()) { + return; + } + auto users = app->all_users(); for (size_t i = 0; i < users.size(); i++) { auto &user = users[i]; user->log_out(); } - while (app->sync_manager()->has_existing_sessions()) { - sleep_ms(5); - } - - bool did_reset = false; - while (!did_reset) { - try { - app->sync_manager()->tear_down_for_testing(); - did_reset = true; - } - catch (...) { - - } - } + app->sync_manager()->tear_down_for_testing(); App::clear_cached_apps(); }