Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/2.2' into 2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
grossmj committed Aug 28, 2022
2 parents e0209a0 + e96d8ae commit 4ddce88
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions gns3server/controller/compute.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,9 +367,6 @@ async def connect(self):
log.warning("Cannot connect to compute '{}': {}".format(self._id, e))
# Try to reconnect after 5 seconds if server unavailable only if not during tests (otherwise we create a ressource usage bomb)
if not hasattr(sys, "_called_from_test") or not sys._called_from_test:
if self.id != "local" and self.id != "vm" and not self._controller.compute_has_open_project(self):
log.warning("Not reconnecting to compute '{}' because there is no project opened on it".format(self._id))
return
self._connection_failure += 1
# After 5 failure we close the project using the compute to avoid sync issues
if self._connection_failure == 10:
Expand Down

0 comments on commit 4ddce88

Please sign in to comment.