diff options
author | Lisa (LeeWei) Liu <liulisa@google.com> | 2024-03-20 07:34:07 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2024-03-20 07:34:07 +0000 |
commit | eb1b76975d4f3d05b4625ddb6d3c0b053a39cefa (patch) | |
tree | 004b4f44d5e444e8f8b56029576bd2305be439f0 | |
parent | 2f0c1fc6e949d40b5938a6a2cf9a58adab599b17 (diff) | |
download | ot-br-posix-eb1b76975d4f3d05b4625ddb6d3c0b053a39cefa.tar.gz |
Revert "[Thread] use the former leave() implementation to work around flaky tests"
This reverts commit 2f0c1fc6e949d40b5938a6a2cf9a58adab599b17.
Reason for revert: DroidMonitor-triggered revert due to breakage b/330451281
Change-Id: I653e89eb1973d3566aa65bb2e517193fb5ffc3f1
-rw-r--r-- | src/android/otdaemon_server.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/android/otdaemon_server.cpp b/src/android/otdaemon_server.cpp index 4eb11381..9132b391 100644 --- a/src/android/otdaemon_server.cpp +++ b/src/android/otdaemon_server.cpp @@ -694,7 +694,9 @@ exit: void OtDaemonServer::FinishLeave(const std::shared_ptr<IOtStatusReceiver> &aReceiver) { (void)otInstanceErasePersistentInfo(GetOtInstance()); - // TODO: b/323301831 - Re-init the Application class. + mApplication.Deinit(); + mApplication.Init(); + initializeInternal(mThreadEnabled == OT_STATE_ENABLED, mINsdPublisher, mMeshcopTxts); if (aReceiver != nullptr) { aReceiver->onSuccess(); |