/** * Restarts Swift forcibly. */ function forceRestartSwift() { Swift_Errors::reset(); //Pre-empting problems trying to issue "QUIT" to a dead connection $this->swift->connection->stop(); $this->swift->connection->start(); $this->swift->disconnect(); //Restart swift $this->swift->connect(); $this->doRestart = false; }