Skip to content

Commit

Permalink
fix mpsrv example
Browse files Browse the repository at this point in the history
  • Loading branch information
fafhrd91 committed Oct 14, 2013
1 parent c22c40f commit 097ca1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/mpsrv.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def stop():
os.getpid(), x.getsockname()))

# heartbeat
tulip.Task(self.heartbeat())
tulip.async(self.heartbeat())

tulip.get_event_loop().run_forever()
os._exit(0)
Expand Down Expand Up @@ -188,7 +188,7 @@ def start(self):
# parent
os.close(up_read)
os.close(down_write)
self.connect(pid, up_write, down_read)
tulip.async(self.connect(pid, up_write, down_read))
else:
# child
os.close(up_write)
Expand Down

0 comments on commit 097ca1f

Please sign in to comment.