[FileBackend] Actually unset the "conn" field in closeConnection().
authorAaron Schulz <aschulz@wikimedia.org>
Tue, 27 Nov 2012 22:52:11 +0000 (14:52 -0800)
committerAaron Schulz <aschulz@wikimedia.org>
Tue, 27 Nov 2012 22:52:11 +0000 (14:52 -0800)
* This means that handleException() will actually trigger a new auth
  attempt for the next operation if there was an unexpected error.

Change-Id: I8c651cc57d0967549ec67257078c8e126674235d

includes/filebackend/SwiftFileBackend.php

index 5a9b062..e9d27f7 100644 (file)
@@ -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();
                }