Index: lib/Doctrine/Manager.php
===================================================================
--- lib/Doctrine/Manager.php	(revision 6752)
+++ lib/Doctrine/Manager.php	(working copy)
@@ -578,11 +578,17 @@
         $connection->close();
 
         $key = array_search($connection, $this->_connections, true);
-
+        
         if ($key !== false) {
             unset($this->_connections[$key]);
+            
+            /* If the closed connection was the current one,
+             * then try to pick next one from the pool */
+            if ($key === $this->_currIndex) {
+                $key = key($this->_connections);
+                $this->_currIndex = ($key !== null) ? $key : 0;
+            }
         }
-        $this->_currIndex = key($this->_connections);
 
         unset($connection);
     }
