From e2cf81e21406f0b507446cf369f7da172ce9da14 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 24 Apr 2013 14:54:59 +0400 Subject: unify houskeeping stuff, increase spawn interval --- classes/db.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'classes/db.php') diff --git a/classes/db.php b/classes/db.php index 9b800dc22..695ca6ea2 100644 --- a/classes/db.php +++ b/classes/db.php @@ -53,6 +53,10 @@ class Db implements IDb { return("'$str'"); } + function reconnect() { + $this->link = $this->adapter->connect(DB_HOST, DB_USER, DB_PASS, DB_NAME, defined('DB_PORT') ? DB_PORT : ""); + } + function connect($host, $user, $pass, $db, $port) { //return $this->adapter->connect($host, $user, $pass, $db, $port); return ; -- cgit v1.2.3