mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-06-22 08:50:09 +00:00
Merge branch '2.2' into 3.0
# Conflicts: # .github/workflows/testing.yml # CHANGELOG # appveyor.yml # dev-requirements.txt # gns3server/controller/compute.py # gns3server/crash_report.py # gns3server/version.py # gns3server/web/route.py # pytest.ini # requirements.txt # tests/compute/dynamips/test_dynamips_router.py # tests/compute/test_base_node.py # tests/compute/vmware/test_vmware_manager.py # tests/compute/vmware/test_vmware_vm.py # tests/controller/gns3vm/test_virtualbox_gns3_vm.py
This commit is contained in:
@ -375,11 +375,6 @@ class Compute:
|
||||
log.warning(f"Cannot connect to compute '{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(
|
||||
f"Not reconnecting to compute '{self._id}' because there is no project opened on it"
|
||||
)
|
||||
return
|
||||
self._connection_failure += 1
|
||||
# After 5 failure we close the project using the compute to avoid sync issues
|
||||
if self._connection_failure == 10:
|
||||
|
Reference in New Issue
Block a user