fixed offline error

This commit is contained in:
Kevin Froman 2018-11-08 23:22:43 -06:00
parent 6f72e8c06c
commit c0707a10f9
4 changed files with 9 additions and 2 deletions

View file

@ -59,7 +59,7 @@ class DaemonTools:
def netCheck(self):
'''Check if we are connected to the internet or not when we can't connect to any peers'''
if len(self.daemon.onlinePeers) != 0:
if len(self.daemon.onlinePeers) == 0:
if not self.daemon._core._utils.checkNetwork(torPort=self.daemon.proxyPort):
logger.warn('Network check failed, are you connected to the internet?')
self.daemon.isOnline = False