Skip to content

Commit

Permalink
More statement when shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
Wh1isper committed Oct 18, 2023
1 parent f8bc1f1 commit 20c9976
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion duetector/collectors/otel.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def initialize(
self._initialized = True

def shutdown(self):
if self.provider:
if self._initialized and self.provider:
self.provider.shutdown()
self._initialized = False
self.provider = None
Expand Down

0 comments on commit 20c9976

Please sign in to comment.