diff --git a/src/Renci.SshNet/Sftp/SftpSession.cs b/src/Renci.SshNet/Sftp/SftpSession.cs index 20ca72e5..93d52f46 100644 --- a/src/Renci.SshNet/Sftp/SftpSession.cs +++ b/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); } }