solve null point bug

This commit is contained in:
SpringHgui 2020-11-03 21:19:57 +08:00
parent 2facf7a07d
commit 1bde3eb5b6

View File

@ -53,7 +53,7 @@ namespace FastTunnel.Core
private void OnAccept(Socket socket)
{
ConnectedSockets.Add(socket);
OnClientsChange.Invoke(socket, ConnectedSockets.Count, false);
OnClientsChange?.Invoke(socket, ConnectedSockets.Count, false);
}
public void Listen(IListenerDispatcher requestDispatcher)