Only release the connection if we didn't report it as failed.

This commit is contained in:
Michael Bayne
2008-11-17 21:55:02 +00:00
parent 42aa622551
commit 566ebcf7f9
@@ -570,7 +570,9 @@ public class PersistenceContext
}
} finally {
_conprov.releaseConnection(_ident, isReadOnly, conn);
if (conn != null) {
_conprov.releaseConnection(_ident, isReadOnly, conn);
}
}
}