Skip to content

Commit

Permalink
Merge pull request #358 from eandersson/master
Browse files Browse the repository at this point in the history
Fix for Issue #357.
  • Loading branch information
Gavin M. Roy committed Jun 10, 2013
2 parents 521b02f + dfbba50 commit 4624ab9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pika/adapters/blocking_connection.py
Expand Up @@ -197,7 +197,8 @@ def close(self, reply_code=200, reply_text='Normal shutdown'):
self._close_channels(reply_code, reply_text)
while self._has_open_channels:
self.process_data_events()
self._send_connection_close(reply_code, reply_text)
if self.socket:
self._send_connection_close(reply_code, reply_text)
while self.is_closing:
self.process_data_events()
if self.heartbeat:
Expand Down

0 comments on commit 4624ab9

Please sign in to comment.