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 <commits@restyled.io>
diff --git a/src/app/ReadHandler.cpp b/src/app/ReadHandler.cpp
index 4794ead..43f9b93 100644
--- a/src/app/ReadHandler.cpp
+++ b/src/app/ReadHandler.cpp
@@ -152,6 +152,7 @@
auto * appCallback = mManagementCallback.GetAppCallback();
if (mFlags.Has(ReadHandlerFlags::ActiveSubscription) && appCallback)
{
+ mFlags.Clear(ReadHandlerFlags::ActiveSubscription);
appCallback->OnSubscriptionTerminated(*this);
}