Add comment explaining ObjectDisposedException

This commit is contained in:
Connor Quagliana
2017-02-15 16:25:59 -08:00
committed by GitHub
parent bc98771ba8
commit 6f8fc51d6f

View File

@@ -328,7 +328,10 @@ namespace Microsoft.SqlTools.ServiceLayer.Connection
}
catch (ObjectDisposedException)
{
// Ignore
// If ObjectDisposedException was thrown, then execution has already exited the
// "using" statment and source was disposed, meaning that the openTask completed
// successfully. This results in a ObjectDisposedException when trying to access
// source.Token and should be ignored.
}
});