Skip to content

Commit

Permalink
prev
Browse files Browse the repository at this point in the history
  • Loading branch information
mulkieran committed Mar 6, 2024
1 parent 15b80b0 commit 6ff71a4
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions scripts/monitor_dbus_signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,15 +215,6 @@ def _interfaces_removed(object_path, interfaces):
:param str object_path: D-Bus object path
:param list interfaces: list of interfaces removed
"""
interfaces = {
k: v for k, v in interfaces.items() if re.fullmatch(_INTERFACE_RE, k)
}

if object_path == _TOP_OBJECT_PATH:
interfaces = {
k: v for k, v in interfaces.items() if k in _TOP_OBJECT_INTERFACES
}

try:
print(
"Interfaces removed:",
Expand All @@ -237,7 +228,8 @@ def _interfaces_removed(object_path, interfaces):

if object_path in _MO.keys():
for interface in interfaces:
del _MO[object_path][interface]
if interface in _MO[object_path]:
del _MO[object_path][interface]

# The InterfacesRemoved signal is sent when an object is
# removed as well as when a single interface is removed.
Expand Down

0 comments on commit 6ff71a4

Please sign in to comment.