mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Do not raise exception if Dynamips or uBridge hypervisor don't return data and are still running. Fixes #1289
This commit is contained in:
1 parent
3ca4f72b99
commit
a3a0657502
2 files changed
+12
No files matched your search
@@ -276,6 +276,9 @@ class DynamipsHypervisor:
|
||||
log.warning("Connection reset received while reading Dynamips response: {}".format(e))
|
||||
continue
|
||||
if not chunk:
|
||||
if self.is_running():
|
||||
log.warning("No data returned from {host}:{port}".format(host=self._host, port=self._port))
|
||||
continue
|
||||
raise DynamipsError("No data returned from {host}:{port}, Dynamips process running: {run}"
|
||||
.format(host=self._host, port=self._port, run=self.is_running()))
|
||||
buf += chunk.decode("utf-8", errors="ignore")
|
||||
|
||||
Reference in new issue
Block a user