Provider loop discovery almost finished
Provider lookup will lookup on startup, do the healthcheck until the stream starts and also restart on stream closure or provider stall
This commit is contained in:
@@ -79,6 +79,13 @@ func NewBeamNGProvider(ip string, port int) (*BeamNG, error) {
|
||||
return provider, nil
|
||||
}
|
||||
|
||||
func (b *BeamNG) Close() {
|
||||
}
|
||||
|
||||
func (b *BeamNG) IsAlive(timeout time.Duration) bool {
|
||||
return true
|
||||
}
|
||||
|
||||
func (b *BeamNG) StopStream() {
|
||||
if b.streamCancel == nil {
|
||||
return
|
||||
|
||||
@@ -31,9 +31,3 @@ func IsRunning() bool {
|
||||
// Think of a better number or something
|
||||
return n >= 80
|
||||
}
|
||||
|
||||
// Stalled
|
||||
// TODO: needs to be implemented
|
||||
func (i *BeamNG) Stalled() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user