浏览代码

Bug 1923: Automatically close timed out Session

https://winscp.net/tracker/1923
(cherry picked from commit 46f2afbd34a233360c674c65de0b190795c0e134)

Source commit: 02a531fe3e214e282473a45bd494b6107ba6ac39
Martin Prikryl 5 年之前
父节点
当前提交
4ddfc45e8d
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      dotnet/Session.cs

+ 1 - 0
dotnet/Session.cs

@@ -2268,6 +2268,7 @@ namespace WinSCP
                 {
                     _logReader.SetTimeouted();
                 }
+                Cleanup();
                 throw Logger.WriteException(new TimeoutException(message));
             }