diff --git a/instana/agent/host.py b/instana/agent/host.py index 0dbbf4c00..c60f739f9 100644 --- a/instana/agent/host.py +++ b/instana/agent/host.py @@ -115,7 +115,6 @@ def can_send(self): self._boot_pid = current_pid logger.debug("Fork detected; Handling like a pro...") self.handle_fork() - return False if self.machine.fsm.current in ["wait4init", "good2go"]: return True diff --git a/instana/collector/base.py b/instana/collector/base.py index 318ec3159..af12317d8 100644 --- a/instana/collector/base.py +++ b/instana/collector/base.py @@ -115,9 +115,9 @@ def shutdown(self, report_final=True): e.g. If the host agent disappeared, we won't be able to report final data. @return: None """ - logger.debug("Collector.shutdown: Reporting final data.") self.thread_shutdown.set() if report_final is True: + logger.debug("Collector.shutdown: Reporting final data.") self.prepare_and_report_data() self.started = False