]> git.mxchange.org Git - friendica.git/blobdiff - bin/daemon.php
Moving from DBA to Database
[friendica.git] / bin / daemon.php
index 047bf71be77b4ac31dbea889098e5dd52dce8b5b..9051e0e6c3be227c55b407ce3260414c24bca851 100755 (executable)
@@ -144,7 +144,7 @@ if (!$foreground) {
        file_put_contents($pidfile, $pid);
 
        // We lose the database connection upon forking
-       Factory\DBFactory::init($a->getConfigCache(), $a->getProfiler(), $_SERVER);
+       $a->getDatabase()->reconnect();
 }
 
 Config::set('system', 'worker_daemon_mode', true);