Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Connection.Start in the .NET client re-initializes state variables regardless of the connection status #2683
Found during work on on fix for #2653
The Connection.Start method in the .NET client initializes instance state variables, e.g. _startTcs, before checking the state of the connection.
This means that if you call Start().Wait() twice in a row, the second call to Start will blast away the state of the connection, resulting in strange errors (as the internal state is now essentially in a corrupt state).
Port from #2675