From ac5d5b2605ac23bdeecf4baa81cf731447828a03 Mon Sep 17 00:00:00 2001 From: "Piotr Kosko/Tizen API (PLT) /SRPOL/Engineer/Samsung Electronics" Date: Fri, 26 Aug 2022 15:24:50 +0200 Subject: [PATCH] [Filesystem] Fixed invalid unregistration of StateListener Issue occurred when running filesystem manual TCTs, first test passed, the second test didn't pass because static FilesystemManager didn't unregister the listener properly. [Verification] Filesystem manual TCT passed. Filesystem auto 100% pass. Change-Id: I185f541b15c146c3b62fb1dbfd5df48c0a9dd5e4 --- src/common/filesystem/filesystem_provider_deviced.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/filesystem/filesystem_provider_deviced.cc b/src/common/filesystem/filesystem_provider_deviced.cc index 9bfb5ea..f179be0 100644 --- a/src/common/filesystem/filesystem_provider_deviced.cc +++ b/src/common/filesystem/filesystem_provider_deviced.cc @@ -211,6 +211,7 @@ void FilesystemProviderDeviced::UnregisterDeviceChangeState() { LoggerD("Dbus signal handling unsubscription"); g_dbus_connection_signal_unsubscribe(dbus_, block_signal_subscribe_id_); } + block_signal_subscribe_id_ = 0; device_changed_callback_ = nullptr; } -- 2.7.4