* Stop the VNC server.
()
| 697 | * Stop the VNC server. |
| 698 | */ |
| 699 | public async stop(): Promise<void> { |
| 700 | if (await this.checkVNCRunning()) { |
| 701 | await this.desktop.commands.run('pkill x11vnc') |
| 702 | } |
| 703 | |
| 704 | if (this.novncHandle) { |
| 705 | await this.novncHandle.kill() |
| 706 | this.novncHandle = null |
| 707 | } |
| 708 | } |
| 709 | |
| 710 | /** |
| 711 | * Set the VNC command to start the VNC server. |
no test coverage detected