Skip to content

Commit

Permalink
Merge pull request #1 from jomorais/fix_name_server_broadcast
Browse files Browse the repository at this point in the history
Fix name server broadcast issue
  • Loading branch information
jomorais authored Jun 29, 2017
2 parents ec180e4 + 52f3275 commit e55ad75
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pyfase.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,14 @@ def execute(self, enable_tasks=None):
if '<r>:' in pkg: # IS A REGISTER PACKAGE!
o_pkg = loads(pkg[4:])
service = o_pkg['s']
if self.name in service:
if self.name == service:
self.on_connect()
else:
self.on_new_service(service, o_pkg['a'])
elif '<b>:' in pkg: # IS A BROADCAST PACKAGE!
o_pkg = loads(pkg[4:])
service = o_pkg['s']
if self.name not in service:
if self.name != service:
self.on_broadcast(service, o_pkg['d'])
else: # IS AN ACTION PACKAGE!
pos = pkg.find(':')
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='pyfase',
version='1.0.1',
version='1.0.2',
url='https://github.com/jomorais/pyfase',
license='GPLv3',
author='Joaci Morais',
Expand Down

0 comments on commit e55ad75

Please sign in to comment.