qmsk / e2

E2 Client, Tally output
Mozilla Public License 2.0
26 stars 7 forks source link

Tally source Connected state #16

Closed SpComb closed 7 years ago

SpComb commented 7 years ago

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.