opensistemas-hub / osbrain

osBrain - A general-purpose multi-agent system module written in Python
https://osbrain.readthedocs.io/en/stable/
Apache License 2.0
175 stars 43 forks source link

Agents receive async replies even after maximum `wait` #280

Closed ocaballeror closed 6 years ago

ocaballeror commented 6 years ago

After the maximum wait time expires, the on_error handler is executed correctly, but agents still receive the reply and will process it as usual, which is not the expected behavior.

The request should be removed from _pending_requests after the timeout has expired so agents ignore the replies if they come in too late.

Peque commented 6 years ago

Good catch! :blush: