Fix dead code error

This commit is contained in:
Dan Williams 2006-09-12 14:22:06 -04:00
parent 1853ea3a3e
commit 7fc7656f78

View File

@ -690,8 +690,8 @@ class PresenceService(object):
resolv_list = self._find_service_adv(stype=stype) resolv_list = self._find_service_adv(stype=stype)
# Request resolution for them if they aren't in-process already # Request resolution for them if they aren't in-process already
for adv in resolv_list: for adv in resolv_list:
if adv not in self._resolve_queue: if adv.state() == _SA_UNRESOLVED:
self._resolve_queue.append(adv) adv.set_state(_SA_RESOLVE_PENDING)
gobject.idle_add(self._resolve_service, adv) gobject.idle_add(self._resolve_service, adv)
def unregister_service_type(self, stype): def unregister_service_type(self, stype):