Source commit: 692659c931d5ae8cf373a16d53068c6413cd3a84
@@ -334,9 +334,12 @@ namespace WinSCP
catch (Exception e)
{
Logger.WriteLine("Exception: {0}", e);
- Cleanup();
throw;
}
+ finally
+ {
+ Cleanup();
+ }
return result;