diff --git a/python/proton/_handlers.py b/python/proton/_handlers.py index c9d1ec21f..28c3db7a7 100644 --- a/python/proton/_handlers.py +++ b/python/proton/_handlers.py @@ -1234,7 +1234,8 @@ def on_selectable_expired(self, event: Event) -> None: t = s._transport r = s._reactor - self.update(t, s, r.now) + if not s.is_terminal and t: + self.update(t, s, r.now) def on_connection_local_open(self, event: Event) -> None: c = event.connection