Skip to content

Commit a902c3a

Browse files
g1itchLee Miller
authored andcommitted
Cleanup knownnodes only if network is enabled
1 parent a3d0e24 commit a902c3a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/class_singleCleaner.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ def run(self): # pylint: disable=too-many-branches
108108
try:
109109
# Cleanup knownnodes and handle possible severe exception
110110
# while writing it to disk
111-
knownnodes.cleanupKnownNodes()
111+
if state.enableNetwork:
112+
knownnodes.cleanupKnownNodes()
112113
except Exception as err:
113114
if "Errno 28" in str(err):
114115
self.logger.fatal(

0 commit comments

Comments
 (0)