Skip to main content
Nintex Community Menu Bar

Close Connection

  • October 8, 2008
  • 1 reply
  • 4 views

Forum|alt.badge.img+3

Hi

When i want to close a connection with a SmartObjectClientServer, i execute this code :

if (_server != null && _server.Connection != null)
            {
                if (_server.Connection.IsConnected)
                {
                    _server.Connection.Close();
                }
                _server.DeleteConnection();

            }

 

I've a problem with this code. I think an operation is asynchronous because i've some aborted thread exception.

 

1 reply

Forum|alt.badge.img+10
  • Nintex Partner
  • October 9, 2008
just for fun try removing the _server.DeleteConnection.