mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-01-18 15:33:49 +02:00
parent
a741662636
commit
2bb062c61e
@ -543,11 +543,16 @@ class DockerVM(BaseVM):
|
|||||||
try:
|
try:
|
||||||
if self.console_type == "vnc":
|
if self.console_type == "vnc":
|
||||||
if self._x11vnc_process:
|
if self._x11vnc_process:
|
||||||
self._x11vnc_process.terminate()
|
try:
|
||||||
self._xvfb_process.terminate()
|
self._x11vnc_process.terminate()
|
||||||
yield from self._x11vnc_process.wait()
|
yield from self._x11vnc_process.wait()
|
||||||
yield from self._xvfb_process.wait()
|
except ProcessLookupError:
|
||||||
|
pass
|
||||||
|
try:
|
||||||
|
self._xvfb_process.terminate()
|
||||||
|
yield from self._xvfb_process.wait()
|
||||||
|
except ProcessLookupError:
|
||||||
|
pass
|
||||||
state = yield from self._get_container_state()
|
state = yield from self._get_container_state()
|
||||||
if state == "paused" or state == "running":
|
if state == "paused" or state == "running":
|
||||||
yield from self.stop()
|
yield from self.stop()
|
||||||
|
Loading…
Reference in New Issue
Block a user