mirror of
https://github.com/sshnet/SSH.NET.git
synced 2026-09-11 01:36:39 +00:00
Added comment for reset of waithandle.
This commit is contained in:
@@ -64,6 +64,8 @@ namespace Renci.SshNet
|
||||
// actually received
|
||||
lock (_socketReadLock)
|
||||
{
|
||||
// reset waithandle, as we're only interested in reads that take
|
||||
// place between Poll and the Available check
|
||||
_bytesReadFromSocket.Reset();
|
||||
var connectionClosedOrDataAvailable = _socket.Poll(1000, SelectMode.SelectRead);
|
||||
isConnected = !(connectionClosedOrDataAvailable && _socket.Available == 0);
|
||||
|
||||
Reference in New Issue
Block a user