changeset ddac4eb72c2a in /home/hg/repos/gajim
author: lovetox forenjunkie@chelo.at branches: gajim_0.16 details:http://hg.gajim.org/gajim?cmd=changeset;node=ddac4eb72c2a description: Fix Bonjour code to not rely on undeclared variables
diffstat:
src/common/zeroconf/zeroconf_bonjour.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r dbd986b92c02 -r ddac4eb72c2a src/common/zeroconf/zeroconf_bonjour.py --- a/src/common/zeroconf/zeroconf_bonjour.py Sat Nov 05 18:17:55 2016 +0100 +++ b/src/common/zeroconf/zeroconf_bonjour.py Sat Nov 05 18:19:44 2016 +0100 @@ -171,7 +171,7 @@ if name != self.name: # update TXT data only, as intended according to resolve_all comment old_contact = self.contacts[name] - self.contacts[name] = old_contact[0:C_TXT] + (txt,) + old_contact[C_TXT+1:] + self.contacts[name] = old_contact[0:C_TXT] + (self.txt,) + old_contact[C_TXT+1:]
def service_added_callback(self, sdRef, flags, errorCode, name, regtype, domain):