From: Aaron Schulz Date: Tue, 27 Nov 2012 22:52:11 +0000 (-0800) Subject: [FileBackend] Actually unset the "conn" field in closeConnection(). X-Git-Tag: 1.31.0-rc.0~21474^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=22bc6df81cecaf7588769234b8361e77a34ab771;p=lhc%2Fweb%2Fwiklou.git [FileBackend] Actually unset the "conn" field in closeConnection(). * This means that handleException() will actually trigger a new auth attempt for the next operation if there was an unexpected error. Change-Id: I8c651cc57d0967549ec67257078c8e126674235d --- diff --git a/includes/filebackend/SwiftFileBackend.php b/includes/filebackend/SwiftFileBackend.php index 5a9b062d9a..e9d27f70fa 100644 --- a/includes/filebackend/SwiftFileBackend.php +++ b/includes/filebackend/SwiftFileBackend.php @@ -1370,6 +1370,7 @@ class SwiftFileBackend extends FileBackendStore { protected function closeConnection() { if ( $this->conn ) { $this->conn->close(); // close active cURL handles in CF_Http object + $this->conn = null; $this->sessionStarted = 0; $this->connContainerCache->clear(); }