Skip to content

Commit

Permalink
fix(plc4go/spi): timeout expectation fails when expired and context e…
Browse files Browse the repository at this point in the history
…rrored
  • Loading branch information
sruehl committed Apr 19, 2023
1 parent bfea265 commit ce079a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plc4go/spi/default/DefaultCodec.go
Expand Up @@ -215,6 +215,7 @@ func (m *defaultCodec) TimeoutExpectations(now time.Time) {
log.Error().Err(err).Msg("Got an error handling error on expectation")
}
}(expectation)
continue
}
if err := expectation.GetContext().Err(); err != nil {
// Remove this expectation from the list.
Expand All @@ -225,6 +226,7 @@ func (m *defaultCodec) TimeoutExpectations(now time.Time) {
log.Error().Err(err).Msg("Got an error handling error on expectation")
}
}(expectation)
continue
}
}
}
Expand Down

0 comments on commit ce079a0

Please sign in to comment.