You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ibatis.apache.org by gb...@apache.org on 2005/04/13 21:57:24 UTC

svn commit: r161202 - incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper/SqlMapSession.cs

Author: gbayon
Date: Wed Apr 13 12:57:23 2005
New Revision: 161202

URL: http://svn.apache.org/viewcvs?view=rev&rev=161202
Log:
- Added fix from JIRA32

Modified:
    incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper/SqlMapSession.cs

Modified: incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper/SqlMapSession.cs
URL: http://svn.apache.org/viewcvs/incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper/SqlMapSession.cs?view=diff&r1=161201&r2=161202
==============================================================================
--- incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper/SqlMapSession.cs (original)
+++ incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper/SqlMapSession.cs Wed Apr 13 12:57:23 2005
@@ -180,14 +180,14 @@
 		/// </summary>
 		public void CloseConnection()
 		{
-			if ( (_connection != null) && (_connection.State == ConnectionState.Open) )
+			if ( (_connection != null) && (_connection.State != ConnectionState.Closed) )
 			{
 				if (_logger.IsDebugEnabled)
 				{
 					_logger.Debug("Close Connection");
 				}
 				_connection.Close();
-				_connection.Dispose();;
+				_connection.Dispose();
 			}
 			_connection = null;
 		}