EEBus: ignore invalid phases
This commit is contained in:
parent
e10f5a12c4
commit
854d0a83c1
1 changed files with 5 additions and 1 deletions
|
|
@ -160,7 +160,11 @@ func (c *EEBus) readPhases(scenario uint, update func(entity spineapi.EntityRemo
|
|||
return 0, 0, 0, err
|
||||
}
|
||||
|
||||
if len(res) < 1 || len(res) > 3 {
|
||||
if len(res) == 0 {
|
||||
return 0, 0, 0, api.ErrNotAvailable
|
||||
}
|
||||
|
||||
if len(res) > 3 {
|
||||
return 0, 0, 0, fmt.Errorf("invalid phases: %v", res)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue