Skip to content

Commit

Permalink
Added comments
Browse files Browse the repository at this point in the history
  • Loading branch information
papafe committed Feb 28, 2024
1 parent 28b8b88 commit 2479b2a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wrappers/src/app_cs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ extern "C" {

REALM_EXPORT void shared_app_reset_for_testing(SharedApp& app) {

// If the logger is empty then tear_down_for_testing has been called already
if (!app->sync_manager()->get_logger()) {
return;
}
Expand All @@ -307,6 +308,7 @@ extern "C" {
user->log_out();
}

// This method will crash the application if called more than once for the same app.
app->sync_manager()->tear_down_for_testing();

App::clear_cached_apps();
Expand Down

0 comments on commit 2479b2a

Please sign in to comment.