Skip to content

Commit

Permalink
reduce code
Browse files Browse the repository at this point in the history
  • Loading branch information
methane committed Jun 6, 2024
1 parent b92d5f1 commit 2600ddc
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions fluent/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,10 +264,9 @@ def close(self):
self.acquire()
try:
try:
s = self._sender
self._sender = None
if s is not None:
s.close()
if self._sender is not None:
self._sender.close()
self._sender = None
finally:
super().close()
finally:
Expand Down

0 comments on commit 2600ddc

Please sign in to comment.