Sfoglia il codice sorgente

Compare server window size with uint zero.

Gert Driesen 8 anni fa
parent
commit
9f87bc3f26
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/Renci.SshNet/Channels/Channel.cs

+ 1 - 1
src/Renci.SshNet/Channels/Channel.cs

@@ -773,7 +773,7 @@ namespace Renci.SshNet.Channels
                 lock (_serverWindowSizeLock)
                 {
                     var serverWindowSize = RemoteWindowSize;
-                    if (serverWindowSize == 0)
+                    if (serverWindowSize == 0U)
                     {
                         // allow us to be signal when remote window size is adjusted
                         _channelServerWindowAdjustWaitHandle.Reset();