Skip to content

Commit

Permalink
[amqp-bunny] ignore broken pipe exception in __destruct()
Browse files Browse the repository at this point in the history
  • Loading branch information
makasim committed Oct 14, 2017
1 parent 573ba54 commit 620031c
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions pkg/amqp-bunny/BunnyClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ class BunnyClient extends Client
{
public function __destruct()
{
// try {
parent::__destruct();
// } catch (ClientException $e) {
// if ('' === $e->getMessage()
// }
try {
parent::__destruct();
} catch (ClientException $e) {
if ('Broken pipe or closed connection.' !== $e->getMessage()) {
throw $e;
}
}
}
}

0 comments on commit 620031c

Please sign in to comment.