Skip to content

Commit 94626f5

Browse files
committed
feat: set transport to none after shutdown
1 parent fc6fc30 commit 94626f5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sentry_sdk/client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ def close(self, timeout=None, shutdown_callback=None):
148148
if timeout is None:
149149
timeout = self.options["shutdown_timeout"]
150150
self.transport.shutdown(timeout=timeout, callback=shutdown_callback)
151+
self.transport = None
151152

152153
def __enter__(self):
153154
return self

0 commit comments

Comments
 (0)