1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-24 17:28:08 +00:00

Catch VPCS kill errors

Fix #199
This commit is contained in:
Julien Duponchelle 2015-05-27 17:21:15 +02:00
parent 8abf22ef24
commit a86bac4214

View File

@ -254,7 +254,10 @@ class VPCSVM(BaseVM):
except asyncio.TimeoutError:
if self._process.returncode is None:
log.warn("VPCS process {} is still running... killing it".format(self._process.pid))
try:
self._process.kill()
except OSError as e:
raise VPCSError("Can not stop the VPCS process: {}".format(e))
self._process = None
self._started = False