From fa0216cd6d4a4fe6dc341d33ee7e9aa79311f9e1 Mon Sep 17 00:00:00 2001 From: Eldad Fux Date: Sun, 16 Oct 2022 14:53:31 +0300 Subject: [PATCH] Removed legacy connection push --- app/http.php | 7 ------- app/realtime.php | 4 ---- 2 files changed, 11 deletions(-) diff --git a/app/http.php b/app/http.php index fca4ff5c60..bfd7e7581c 100644 --- a/app/http.php +++ b/app/http.php @@ -316,13 +316,6 @@ $http->on('request', function (SwooleRequest $swooleRequest, SwooleResponse $swo Console::error('[Error] File: ' . $th->getFile()); Console::error('[Error] Line: ' . $th->getLine()); - /** - * Reset Database connection if PDOException was thrown. - */ - if ($th instanceof PDOException) { - $db = null; - } - $swooleResponse->setStatusCode(500); $output = ((App::isDevelopment())) ? [ diff --git a/app/realtime.php b/app/realtime.php index 9df6ed5e4f..cea2f89b68 100644 --- a/app/realtime.php +++ b/app/realtime.php @@ -456,10 +456,6 @@ $server->onOpen(function (int $connection, SwooleRequest $request) use ($server, Console::error('[Error] Code: ' . $response['data']['code']); Console::error('[Error] Message: ' . $response['data']['message']); } - - if ($th instanceof PDOException) { - $db = null; - } } finally { /** * Put used PDO and Redis Connections back into their pools.