Skip to content

Commit

Permalink
Late night bug
Browse files Browse the repository at this point in the history
  • Loading branch information
gmr committed Apr 29, 2015
1 parent cd6c1bf commit 1053ebc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pika/adapters/base_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def _cleanup_socket(self):
"""Close the socket cleanly"""
if self.socket:
try:
if hasattr('socket', self.socket):
if hasattr(self.socket, 'socket'):
self.socket.socket.shutdown(socket.SHUT_RDWR)
else:
self.socket.shutdown(socket.SHUT_RDWR)
Expand Down

0 comments on commit 1053ebc

Please sign in to comment.