From 7fc7656f78d9cd2e4e76ee66fd80182480377536 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Tue, 12 Sep 2006 14:22:06 -0400 Subject: [PATCH] Fix dead code error --- shell/PresenceService/PresenceService.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shell/PresenceService/PresenceService.py b/shell/PresenceService/PresenceService.py index 4685dde8..1534ae9f 100644 --- a/shell/PresenceService/PresenceService.py +++ b/shell/PresenceService/PresenceService.py @@ -690,8 +690,8 @@ class PresenceService(object): resolv_list = self._find_service_adv(stype=stype) # Request resolution for them if they aren't in-process already for adv in resolv_list: - if adv not in self._resolve_queue: - self._resolve_queue.append(adv) + if adv.state() == _SA_UNRESOLVED: + adv.set_state(_SA_RESOLVE_PENDING) gobject.idle_add(self._resolve_service, adv) def unregister_service_type(self, stype):