Skip to content

Commit

Permalink
Don't call the callback if the transport was closed
Browse files Browse the repository at this point in the history
  • Loading branch information
rchl authored and rwols committed Dec 13, 2021
1 parent df55aed commit 766865b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugin/core/transports.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ def _read_loop(self) -> None:
continue

def invoke(p: T) -> None:
if self._closed:
return
callback_object = self._callback_object()
if callback_object:
callback_object.on_payload(p)
Expand Down

0 comments on commit 766865b

Please sign in to comment.