Skip to content

Commit

Permalink
Merge pull request #202 from onefinestay/fix_keyboardinterrupt_race
Browse files Browse the repository at this point in the history
make sure queue is still there
  • Loading branch information
davidszotten committed Feb 13, 2015
2 parents 633b614 + 1f4ee9b commit 3ba2868
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nameko/standalone/rpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ def _poll_messages(self):
except KeyboardInterrupt as exc:
event = self.provider._reply_events.pop(correlation_id)
event.send_exception(exc)
# exception may have killed the connection
self._setup_queue()
correlation_id = yield


Expand Down

0 comments on commit 3ba2868

Please sign in to comment.