Fix detection of the broken Internet connection on the app start up

This commit is contained in:
Vadim Ushakov 2021-10-25 12:53:37 +07:00
parent b512c54f75
commit 1fd1f47a94

View file

@ -118,6 +118,8 @@ class Connection(object):
# Open connection to peer and wait for handshake
def connect(self):
self.updateOnlineStatus(outgoing_activity=True)
if not self.event_connected or self.event_connected.ready():
self.event_connected = gevent.event.AsyncResult()