From 1fd1f47a9410331ea80aed37cde9d3f4743a8e7c Mon Sep 17 00:00:00 2001 From: Vadim Ushakov Date: Mon, 25 Oct 2021 12:53:37 +0700 Subject: [PATCH] Fix detection of the broken Internet connection on the app start up --- src/Connection/Connection.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Connection/Connection.py b/src/Connection/Connection.py index 398a4cc3..504daf58 100644 --- a/src/Connection/Connection.py +++ b/src/Connection/Connection.py @@ -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()