reconnects are slightly improved

I don't really like the reset thing with the delay. I need to implement
something better later on
This commit is contained in:
2026-09-22 17:07:53 +01:00
parent 636f20df77
commit df1e3c26fa
3 changed files with 44 additions and 4 deletions
+8
View File
@@ -25,6 +25,14 @@ func (cds *CDashDisplay) setupForBeamNG() error {
}
func (cds *CDashDisplay) Setup(provider string) error {
// Doesn't matter which one we are picking, we need to reset the CDashDisplay
// first - we will improve this setup behaviour later on with an Update to
// change it without dropping connection or some shit
err := cds.reset()
if err != nil {
return err
}
switch provider {
case constants.IRacingProviderName:
return cds.setupForIracing()