From 4252680ccf2e07bbe4c1929c927b393083fba53e Mon Sep 17 00:00:00 2001 From: ornicar Date: Sun, 6 Feb 2011 16:30:43 -0800 Subject: [PATCH] [HttpKernel] Catch exception when SQLite profiler storage fails to cleanup --- .../Component/HttpKernel/Profiler/SQLiteProfilerStorage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/HttpKernel/Profiler/SQLiteProfilerStorage.php b/src/Symfony/Component/HttpKernel/Profiler/SQLiteProfilerStorage.php index fc090d3904..0840f8649d 100644 --- a/src/Symfony/Component/HttpKernel/Profiler/SQLiteProfilerStorage.php +++ b/src/Symfony/Component/HttpKernel/Profiler/SQLiteProfilerStorage.php @@ -94,11 +94,11 @@ class SQLiteProfilerStorage implements ProfilerStorageInterface ); try { $this->exec($db, 'INSERT INTO data (token, data, ip, url, time, created_at) VALUES (:token, :data, :ip, :url, :time, :created_at)', $args); + $this->cleanup(); $status = true; } catch (\Exception $e) { $status = false; } - $this->cleanup(); $this->close($db); return $status;