mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-21 01:25:42 -05:00
Add comment explaining ObjectDisposedException
This commit is contained in:
@@ -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.
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user