fixed offline error
This commit is contained in:
parent
6f72e8c06c
commit
c0707a10f9
4 changed files with 9 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue