Skip to content

Commit 953e136

Browse files
authored
Fix nullable error in build (#1377)
1 parent 0fb3871 commit 953e136

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Renci.SshNet/SftpClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public override bool IsConnected
121121
{
122122
get
123123
{
124-
return base.IsConnected && _sftpSession.IsOpen;
124+
return base.IsConnected && _sftpSession?.IsOpen == true;
125125
}
126126
}
127127

0 commit comments

Comments
 (0)