diff --git a/bbot/scanner/scanner.py b/bbot/scanner/scanner.py index 18172e658..fa2abfadf 100644 --- a/bbot/scanner/scanner.py +++ b/bbot/scanner/scanner.py @@ -172,10 +172,6 @@ def __init__( self.dispatcher = dispatcher self.dispatcher.set_scan(self) - from .stats import ScanStats - - self.stats = ScanStats(self) - # scope distance self.scope_config = self.config.get("scope", {}) self.scope_search_distance = max(0, int(self.scope_config.get("search_distance", 0))) @@ -215,6 +211,10 @@ def __init__( # how often to print scan status self.status_frequency = self.config.get("status_frequency", 15) + from .stats import ScanStats + + self.stats = ScanStats(self) + self._prepped = False self._finished_init = False self._new_activity = False