def __connection_ready_cb(self, connection):
# http://bugs.sugarlabs.org/ticket/3326
#
# Daniel Drake has given a comprehensive description of the
# issue. So the fix is that, when the
# dangling-connection-object calls the "__connection_ready_cb",
# check to see if it is the same as the referenced
# "self._connection" object. If not, simply return; this would
# have the following consequences ::
#
# (i)
# not connect any more signals to the
# dangling-connection-object.
#
# (ii)
# the dangling-connection-object would finally be
# garbage-collected.
if connection != self._connection:
returnAdd a code snippet to your website: www.paste.org