Skip to content
Permalink
Browse files

Fix NRE on TorClient

  • Loading branch information...
lontivero committed Nov 17, 2018
1 parent 8127d01 commit 1d7be4e6043322d3268ef7d7025b5a219fc86489
Showing with 3 additions and 1 deletion.
  1. +3 −1 WalletWasabi/TorSocks5/TorSocks5Client.cs
@@ -60,7 +60,9 @@ public bool IsConnected
internal TorSocks5Client(IPEndPoint ipEndPoint)
{
TorSocks5EndPoint = ipEndPoint;
TcpClient = new TcpClient(ipEndPoint.AddressFamily);
TcpClient = ipEndPoint != null
? new TcpClient(ipEndPoint.AddressFamily)
: new TcpClient();
AsyncLock = new AsyncLock();
}

0 comments on commit 1d7be4e

Please sign in to comment.
You can’t perform that action at this time.