task_Server: single-dbh
authorSven Schöling <s.schoeling@linet-services.de>
Tue, 16 Aug 2016 11:25:13 +0000 (13:25 +0200)
committerSven Schöling <s.schoeling@linet-services.de>
Fri, 2 Sep 2016 12:21:30 +0000 (14:21 +0200)
scripts/task_server.pl

index c946371..d4e9f94 100755 (executable)
@@ -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;