Get the damned thing to work, finally!
This commit is contained in:
+1
-1
@@ -110,7 +110,7 @@ class LocalGroup(Group):
|
||||
|
||||
for prop in avahi.txt_array_to_string_array(txt):
|
||||
(key, value) = prop.split('=')
|
||||
if key == 'multicast':
|
||||
if key == 'group_address':
|
||||
service.set_group_address(value)
|
||||
|
||||
if stype == PRESENCE_SERVICE_TYPE:
|
||||
|
||||
@@ -9,10 +9,10 @@ class NotificationListener:
|
||||
self._recv_multicast)
|
||||
server.start()
|
||||
|
||||
self._listeners = {}
|
||||
self._listeners = []
|
||||
|
||||
def add_listener(self, listener):
|
||||
self._listeners.add(listener)
|
||||
self._listeners.append(listener)
|
||||
|
||||
def _recv_multicast(self, msg):
|
||||
for listener in self._listeners:
|
||||
|
||||
@@ -29,7 +29,7 @@ class Service(object):
|
||||
def set_address(self, address):
|
||||
self._address = address
|
||||
|
||||
def set_group_address(self):
|
||||
def set_group_address(self, group_address):
|
||||
self._group_address = group_address
|
||||
|
||||
def is_multicast(self):
|
||||
|
||||
Reference in New Issue
Block a user