examples: fix mitop example.

This commit is contained in:
David Wilson 2018-02-14 20:42:31 +00:00
parent fce44a5843
commit 762dbcef3d
1 changed files with 2 additions and 2 deletions

View File

@ -127,8 +127,8 @@ class Painter(object):
def local_main(painter, router, select, delay):
next_paint = 0
while True:
recv, (msg, data) = select.get()
parse_output(recv.host, data)
msg = select.get()
parse_output(msg.receiver.host, msg.unpickle())
if next_paint < time.time():
next_paint = time.time() + delay
painter.paint()