Ver código fonte

Also use Interlocked.Increment(ref long) on Windows Phone.

drieseng 9 anos atrás
pai
commit
eb56b0fae8
1 arquivos alterados com 1 adições e 10 exclusões
  1. 1 10
      src/Renci.SshNet/Sftp/SftpSession.cs

+ 1 - 10
src/Renci.SshNet/Sftp/SftpSession.cs

@@ -45,16 +45,7 @@ namespace Renci.SshNet.Sftp
         {
             get
             {
-#if WINDOWS_PHONE
-                lock (this)
-                {
-                    this._requestId++;
-                }
-
-                return (uint)this._requestId;
-#else
-                return ((uint) Interlocked.Increment(ref _requestId));
-#endif
+                return (uint) Interlocked.Increment(ref _requestId);
             }
         }