fix peer amount check not calling method

This commit is contained in:
Kevin Froman 2018-08-23 09:59:00 -05:00
parent 25e4444bda
commit 6d31fa4229

View File

@ -132,7 +132,7 @@ class OnionrUtils:
continue
if self._core.addAddress(adder):
# Check if we have the maxmium amount of allowed stored peers
if config.get('peers.maxStoredPeers') > len(self._core.listAdders):
if config.get('peers.maxStoredPeers') > len(self._core.listAdders()):
logger.info('Added %s to db.' % adder, timestamp = True)
retVal = True
else: