From 50119c7a12c7d6f1502223315fb8620ac2f6378a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Tue, 16 Aug 2016 13:25:13 +0200 Subject: [PATCH] task_Server: single-dbh --- scripts/task_server.pl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/task_server.pl b/scripts/task_server.pl index c946371d0..d4e9f94db 100755 --- a/scripts/task_server.pl +++ b/scripts/task_server.pl @@ -94,8 +94,7 @@ sub initialize_kivitendo { } sub cleanup_kivitendo { - eval { SL::DB::Auth->new->db->dbh->rollback; }; - eval { SL::DB::BackgroundJob->new->db->dbh->rollback; }; + eval { SL::DB->client->dbh->rollback; }; $::auth->save_session; $::auth->expire_sessions; -- 2.20.1