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

Commit

Permalink
Bug 951558: also ignore errors when *closing* a socket; r=jhopkins
Browse files Browse the repository at this point in the history
  • Loading branch information
djmitche committed Dec 20, 2013
1 parent 4e9eb73 commit a5dda2f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion buildapi/lib/mq.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -85,7 +85,10 @@ def connect(self):


def disconnect(self): def disconnect(self):
if self.connection: if self.connection:
self.connection.close() try:
self.connection.close()
except:
log.info("error while disconnecting; ignored", exc_info=True)
self.connection = None self.connection = None


def wait(self, limit=None): def wait(self, limit=None):
Expand Down

0 comments on commit a5dda2f

Please sign in to comment.