[patch][python] Ignore errors while cleaning up signal matches

Simon McVittie simon.mcvittie at collabora.co.uk
Tue Jun 12 06:33:46 PDT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

- From 5b408fd8501d79f87bd752f9ce483f5beb6f157b Mon Sep 17 00:00:00 2001
From: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date: Mon, 11 Jun 2007 18:10:16 +0100
Subject: [PATCH] dbus.bus: Ignore any errors while cleaning up signal matches, so we can make the call asynchronously

- ---
 dbus/bus.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dbus/bus.py b/dbus/bus.py
index 86ca159..d7352be 100644
- --- a/dbus/bus.py
+++ b/dbus/bus.py
@@ -149,7 +149,7 @@ class BusConnection(Connection):
 
     def _clean_up_signal_match(self, match):
         # The signals lock is no longer held here (it was in <= 0.81.0)
- -        self.remove_match_string(str(match))
+        self.remove_match_string_non_blocking(str(match))
         watch = self._signal_sender_matches.pop(match, None)
         if watch is not None:
             watch.cancel()
- -- 
1.5.2.1

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: OpenPGP key: http://www.pseudorandom.co.uk/2003/contact/ or pgp.net

iD8DBQFGbqC6WSc8zVUw7HYRAqzKAKCZuuN/8e64CBZp+hb0kWdq/seikgCghNWr
IP+ruiGho29AhNtOqIzEcwI=
=9llC
-----END PGP SIGNATURE-----


More information about the dbus mailing list