Skip to content
This repository has been archived by the owner on Mar 15, 2019. It is now read-only.

Commit

Permalink
Use a blocking update instead of gevent
Browse files Browse the repository at this point in the history
  • Loading branch information
sameer committed Dec 6, 2018
1 parent 9b08c52 commit 6e8f165
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ds-server.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def your_print_is_ready(ws: WebSocket):
printer_jsons = new_printer_jsons
printer_jsons_last = datetime.utcnow()
for client in clients:
gevent.spawn(lambda: update(client))
update(client)
logging.info(f'Processed values from poller {ws}')
else:
logging.info(f'Client {ws} key did not match expected key')
Expand Down

0 comments on commit 6e8f165

Please sign in to comment.