Cleanup knownnodes only if network is enabled
This commit is contained in:
parent
a3d0e24623
commit
a902c3acf7
|
@ -108,6 +108,7 @@ class singleCleaner(StoppableThread):
|
|||
try:
|
||||
# Cleanup knownnodes and handle possible severe exception
|
||||
# while writing it to disk
|
||||
if state.enableNetwork:
|
||||
knownnodes.cleanupKnownNodes()
|
||||
except Exception as err:
|
||||
if "Errno 28" in str(err):
|
||||
|
|
Reference in New Issue
Block a user