Explorar o código

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

drieseng %!s(int64=9) %!d(string=hai) anos
pai
achega
eb56b0fae8
Modificáronse 1 ficheiros con 1 adicións e 10 borrados
  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);
             }
         }