Skip to content

Connection.Start in the .NET client re-initializes state variables regardless of the connection status #2683

DamianEdwards opened this Issue Nov 5, 2013 · 1 comment

2 participants

SignalR member

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

@DamianEdwards DamianEdwards was assigned Nov 5, 2013

ran test "ConnectionFunctionsCorrectlyAfterCallingStartMutlipleTimes"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.