Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar/p2p/NotificationListener.py
diff options
context:
space:
mode:
Diffstat (limited to 'sugar/p2p/NotificationListener.py')
-rw-r--r--sugar/p2p/NotificationListener.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/sugar/p2p/NotificationListener.py b/sugar/p2p/NotificationListener.py
index ba89936..433b777 100644
--- a/sugar/p2p/NotificationListener.py
+++ b/sugar/p2p/NotificationListener.py
@@ -2,9 +2,8 @@ from sugar.p2p.Notifier import Notifier
import network
class NotificationListener:
- def __init__(self, group, name):
- service = group.get_service(name, Notifier.TYPE)
- server = network.GroupServer(service.get_group_address(),
+ def __init__(self, service):
+ server = network.GroupServer(service.get_address(),
service.get_port(),
self._recv_multicast)
server.start()