@@ -107,12 +107,10 @@ |
||
107 | 107 | } |
108 | 108 | $this->buffer = ''; // wipe the buffer |
109 | 109 | $this->validate(); |
110 | - } |
|
111 | - catch (WebSocketError $e) { // catch and respond with HTTP error and rethrow |
|
110 | + } catch (WebSocketError $e) { // catch and respond with HTTP error and rethrow |
|
112 | 111 | $this->client->write("HTTP/1.1 {$e->getCode()} WebSocket Handshake Failure\r\n\r\n"); |
113 | 112 | throw $e; |
114 | - } |
|
115 | - catch (Throwable $e) { // catch everything else and respond with HTTP 500 and rethrow |
|
113 | + } catch (Throwable $e) { // catch everything else and respond with HTTP 500 and rethrow |
|
116 | 114 | $this->client->write("HTTP/1.1 500 WebSocket Internal Error\r\n\r\n"); |
117 | 115 | throw $e; |
118 | 116 | } |