From 2479b2aacb1248fb70c3be6344884bf53b8ea35b Mon Sep 17 00:00:00 2001 From: Ferdinando Papale <4850119+papafe@users.noreply.github.com> Date: Wed, 28 Feb 2024 15:12:01 +0100 Subject: [PATCH] Added comments --- wrappers/src/app_cs.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wrappers/src/app_cs.cpp b/wrappers/src/app_cs.cpp index 9820041e24..936ca73aa4 100644 --- a/wrappers/src/app_cs.cpp +++ b/wrappers/src/app_cs.cpp @@ -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; } @@ -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();