BF catch throwable instead of exceptions

This commit is contained in:
a6a2f5842 2025-09-06 10:43:07 +02:00
parent f5470c9b0a
commit 4fe731a777
3 changed files with 3 additions and 3 deletions

View File

@ -105,7 +105,7 @@ class Controller
]));
return $payload;
} catch (\Exception $e) {
} catch (\Throwable $e) {
$reload = [
'event' => @$message['event'],
'data' => @$message['data'],

View File

@ -165,7 +165,7 @@ class Handler implements MessageComponentInterface
} else {
$this->addDataCheckLoop($connection, $message, $pid);
}
} catch (\Exception $e) {
} catch (\Throwable $e) {
Log::channel('websocket')->error('onMessage unhandled error: '. $e->getMessage(), [
'file' => $e->getFile(),
'line' => $e->getLine(),

View File

@ -36,7 +36,7 @@ class MockConnection extends Connection implements \Ratchet\ConnectionInterface
try {
$property->setAccessible(true);
$this->{$property->getName()} = $property->getValue($original_connection);
} catch (\Exception $e) {
} catch (\Throwable $e) {
}
}