Fix detection of the broken Internet connection on the app start up
This commit is contained in:
parent
b512c54f75
commit
1fd1f47a94
1 changed files with 2 additions and 0 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue