don't fail when there is a name conflict
This commit is contained in:
parent
260464706e
commit
28cb6c6bb4
|
@ -224,7 +224,7 @@ class Zeroconf:
|
||||||
self.service_sdRef = sdRef
|
self.service_sdRef = sdRef
|
||||||
except pybonjour.BonjourError, e:
|
except pybonjour.BonjourError, e:
|
||||||
self.service_add_fail_callback(e)
|
self.service_add_fail_callback(e)
|
||||||
|
else:
|
||||||
gajim.log.debug('Publishing service %s of type %s' % (self.name, self.stype))
|
gajim.log.debug('Publishing service %s of type %s' % (self.name, self.stype))
|
||||||
|
|
||||||
ready = select.select([sdRef], [], [], resolve_timeout)
|
ready = select.select([sdRef], [], [], resolve_timeout)
|
||||||
|
@ -297,8 +297,6 @@ class Zeroconf:
|
||||||
self.browse_loop()
|
self.browse_loop()
|
||||||
|
|
||||||
for val in self.contacts.values():
|
for val in self.contacts.values():
|
||||||
print val[C_BARE_NAME]
|
|
||||||
print val[C_DOMAIN]
|
|
||||||
resolve_sdRef = pybonjour.DNSServiceResolve(0, pybonjour.kDNSServiceInterfaceIndexAny, val[C_BARE_NAME], self.stype+'.', val[C_DOMAIN]+'.', self.service_resolved_all_callback)
|
resolve_sdRef = pybonjour.DNSServiceResolve(0, pybonjour.kDNSServiceInterfaceIndexAny, val[C_BARE_NAME], self.stype+'.', val[C_DOMAIN]+'.', self.service_resolved_all_callback)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue