[Bugs] #2192 UNSP: When owner leaves, shared activity does not always go away on his own view
Sugar Labs Bugs
bugtracker-noreply at sugarlabs.org
Thu Aug 19 07:33:22 EDT 2010
#2192: When owner leaves, shared activity does not always go away on his own view
------------------------------------------+---------------------------------
Reporter: erikos | Owner: tomeu
Type: defect | Status: new
Priority: Unspecified by Maintainer | Milestone: Unspecified by Release Team
Component: sugar-presence-service | Version: 0.84.x
Severity: Unspecified | Keywords:
Distribution: Unspecified | Status_field: Unconfirmed
------------------------------------------+---------------------------------
Comment(by erikos):
I tracked this down to the following:
http://git.sugarlabs.org/projects/sugar-presence-
service/repos/mainline/blobs/sucrose-0.84/src/activity.py#line1192
When 'A' leaves 'A' and 'B' are still in self._claimed_buddies.
self_buddies only contains buddy 'A'. That means that new_buddies will
contain 'B' when calling self._add_buddies(new_buddies). When we then try
to remove buddy 'A' the disappeared signal is never called because the
list of buddies is not empty (B has been added again).
http://git.sugarlabs.org/projects/sugar-presence-
service/repos/mainline/blobs/sucrose-0.84/src/activity.py#line784
--
Ticket URL: <http://bugs.sugarlabs.org/ticket/2192#comment:1>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system
More information about the Bugs
mailing list