Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[dotnet] Quit fails after not successful new session (#14242)
* [dotnet] do not execute Quit command when sessionId is not available If new session creation fails a Quit() method is called which calls Dispose and then Quit command, unfortunately in this case session is still not created and it throws null reference exception and this hides the actual exception * [dotnet] ignore exceptions from Quit when new session fails In order to propagate the original error when session fails, surround the Quit call in try/catch in case it also throws an exception. --------- Co-authored-by: Nikolay Borisenko <[email protected]>
- Loading branch information