Skip to content

Commit eb56b0f

Browse files
committed
Also use Interlocked.Increment(ref long) on Windows Phone.
1 parent ad5675c commit eb56b0f

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/Renci.SshNet/Sftp/SftpSession.cs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,7 @@ public uint NextRequestId
4545
{
4646
get
4747
{
48-
#if WINDOWS_PHONE
49-
lock (this)
50-
{
51-
this._requestId++;
52-
}
53-
54-
return (uint)this._requestId;
55-
#else
56-
return ((uint) Interlocked.Increment(ref _requestId));
57-
#endif
48+
return (uint) Interlocked.Increment(ref _requestId);
5849
}
5950
}
6051

0 commit comments

Comments
 (0)