From b3e074c96e2a72fa427dbb1827ffa717ea97a6ac Mon Sep 17 00:00:00 2001 From: Mathieu Kardous <84793247+mkardous-silabs@users.noreply.github.com> Date: Fri, 29 Nov 2024 00:50:44 -0500 Subject: [PATCH] Remove Active flag when the readhandler is going to be destroyed (#36653) * remove Active flag when the readhandler is going to be destroyed * Restyled by clang-format --------- Co-authored-by: Restyled.io --- src/app/ReadHandler.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/ReadHandler.cpp b/src/app/ReadHandler.cpp index 4794ead97eb86b..43f9b9310df848 100644 --- a/src/app/ReadHandler.cpp +++ b/src/app/ReadHandler.cpp @@ -152,6 +152,7 @@ ReadHandler::~ReadHandler() auto * appCallback = mManagementCallback.GetAppCallback(); if (mFlags.Has(ReadHandlerFlags::ActiveSubscription) && appCallback) { + mFlags.Clear(ReadHandlerFlags::ActiveSubscription); appCallback->OnSubscriptionTerminated(*this); }