diff --git a/src/Connection/ConnectionServer.py b/src/Connection/ConnectionServer.py index aa2bd7dc..29482677 100644 --- a/src/Connection/ConnectionServer.py +++ b/src/Connection/ConnectionServer.py @@ -220,8 +220,8 @@ class ConnectionServer: connection.bad_actions = 0 # Internet outage detection - if time.time() - last_message_time > max(60, 60*5/max(1,len(self.connections)/50)): - # Offline: Last message more than 60-300sec depending on connection number + if time.time() - last_message_time > max(60, 60*10/max(1,float(len(self.connections))/50)): + # Offline: Last message more than 60-600sec depending on connection number if self.has_internet: self.has_internet = False self.onInternetOffline()