From 5b6dbececd1c158e8fdb1c2458a2be5528ad38b8 Mon Sep 17 00:00:00 2001 From: Guillaume Mazoyer Date: Sun, 3 Aug 2014 23:55:08 +0200 Subject: Be sure to login and disconnect after each command. --- routers/router.php | 3 --- 1 file changed, 3 deletions(-) (limited to 'routers/router.php') diff --git a/routers/router.php b/routers/router.php index b47d2d3..d786f94 100644 --- a/routers/router.php +++ b/routers/router.php @@ -49,7 +49,6 @@ abstract class Router { $auth = Authentication::instance($this->config); try { - $auth->connect(); $data = ''; foreach ($commands as $selected) { @@ -57,8 +56,6 @@ abstract class Router { log_to_file('[client: '.$this->requester.'] '.$this->config['host']. '> '.$selected); } - - $auth->disconnect(); } catch (Exception $e) { throw $e; } -- cgit v1.2.3