From 1b46dade83ee2e8ba55371e9071200d036696c55 Mon Sep 17 00:00:00 2001 From: Thomas Adamcik Date: Fri, 15 Jul 2011 00:54:14 +0200 Subject: [PATCH] Note why source_remove return values are ignored --- mopidy/utils/network.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mopidy/utils/network.py b/mopidy/utils/network.py index c0dd5043..b08a12d6 100644 --- a/mopidy/utils/network.py +++ b/mopidy/utils/network.py @@ -110,6 +110,10 @@ class Connection(object): # NOTE: the callback code is _not_ run in the actor's thread, but in the # same one as the event loop. If code in the callbacks blocks, the rest of # gobject code will likely be blocked as well... + # + # Also note that source_remove() return values are ignored on purpose, a + # false return value would only tell us that what we thought was registered + # is already gone, there is really nothing more we can do. def __init__(self, protocol, sock, addr, timeout): sock.setblocking(False)