Small fix

This commit is contained in:
Pinga 2023-12-09 13:16:19 +02:00
parent f343ce2229
commit a231b891df
2 changed files with 6 additions and 0 deletions

View file

@ -86,5 +86,8 @@ Coroutine::create(function () use ($pool, $log) {
$log->error('Database error: ' . $e->getMessage());
} catch (Throwable $e) {
$log->error('Error: ' . $e->getMessage());
} finally {
// Return the connection to the pool
$pool->put($pdo);
}
});

View file

@ -196,5 +196,8 @@ Coroutine::create(function () use ($pool, $log, $c) {
$log->error('Database error: ' . $e->getMessage());
} catch (Throwable $e) {
$log->error('Error: ' . $e->getMessage());
} finally {
// Return the connection to the pool
$pool->put($pdo);
}
});