Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tally source Connected state #16

Closed
SpComb opened this issue Jan 2, 2017 · 0 comments
Closed

Tally source Connected state #16

SpComb opened this issue Jan 2, 2017 · 0 comments
Labels

Comments

@SpComb
Copy link
Member

SpComb commented Jan 2, 2017

I suspect the tally:SourceState.Connected state is set incorrectly, and will always be true: https://github.com/qmsk/e2/blob/v0.4.1/tally/state.go#L131

I assume that the tally:Source.xmlClient will never be nil in the current implementation.

The same applies to the Source.updateState: https://github.com/qmsk/e2/blob/master/tally/source.go#L87

These should either use the closed, err state set by tally:Source.run, or that func should also set xmlClient to nil.

@SpComb SpComb added the bug label Jan 2, 2017
depili added a commit to depili/e2 that referenced this issue Jan 5, 2017
We now use the source.closed & source.err states to determine source.Connected
@SpComb SpComb closed this as completed in 854c888 Feb 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant