Skip to content

Commit

Permalink
Handle Ctrl-C more quietly in spin()
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Allik committed Aug 27, 2013
1 parent 4fdb12a commit a72b5ab
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion spinoff/actor/spin.py
Expand Up @@ -55,7 +55,10 @@ def spin(actor_cls, name=None, init_params={}, node_id=None, initial_messages=[]
initial_messages=initial_messages,
stop_event=stop_event
), name='-runner')
stop_event.wait()
try:
stop_event.wait()
except KeyboardInterrupt:
pass


def console():
Expand Down

0 comments on commit a72b5ab

Please sign in to comment.