Browse Source

Remove unnecessary volatile

tags/3.4.0
noisyfox 8 years ago
parent
commit
2c15520230
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      shadowsocks-csharp/Util/Sockets/WrappedSocket.cs

+ 1
- 1
shadowsocks-csharp/Util/Sockets/WrappedSocket.cs View File

@@ -21,7 +21,7 @@ namespace Shadowsocks.Util.Sockets
// Only used during connection and close, so it won't cost too much.
private SpinLock _socketSyncLock = new SpinLock();

private volatile bool _disposed;
private bool _disposed;
private bool Connected => _activeSocket != null;
private Socket _activeSocket;



Loading…
Cancel
Save