aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2016-06-15 13:39:09 +0200
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2016-06-17 17:04:44 +0200
commit599e643c51f14cdf588c832e1d8818ccfd3b394a (patch)
treedcbf1375bb793b84009ef4498dd60cc0a6a2316b
parent8bde3c60ac930ac5ec1ffc6389afb8ec6a009d26 (diff)
downloadWebsocket-599e643c51f14cdf588c832e1d8818ccfd3b394a.zip
Websocket-599e643c51f14cdf588c832e1d8818ccfd3b394a.tar.gz
Websocket-599e643c51f14cdf588c832e1d8818ccfd3b394a.tar.bz2
Connection: Capture all exceptions in `message`.
The `message` event listener can through an exception and then we must capture it to fire the `error` event listener. It must not be restricted to `Hoa\Exception\Group` only, but it's better to capture all kind of exceptions.
-rw-r--r--Connection.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Connection.php b/Connection.php
index d35c189..0b58a7e 100644
--- a/Connection.php
+++ b/Connection.php
@@ -294,7 +294,7 @@ abstract class Connection
'message' => $frame['message']
])
);
- } catch (HoaException\Group $e) {
+ } catch (\Exception $e) {
$this->getListener()->fire(
'error',
new Event\Bucket([