修改releaseConnection逻辑