(result: RendererResult)
| 93 | } |
| 94 | |
| 95 | public async end(result: RendererResult) { |
| 96 | this.stream.pushImage(null); |
| 97 | if (result === 1) { |
| 98 | try { |
| 99 | this.command.kill('SIGKILL'); |
| 100 | await this.promise; |
| 101 | } catch (err) { |
| 102 | sendEvent(EventName.Error, {message: (err as Error).message}); |
| 103 | } |
| 104 | } else { |
| 105 | await this.promise; |
| 106 | } |
| 107 | } |
| 108 | |
| 109 | public async kill() { |
| 110 | try { |
no test coverage detected