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