()
| 168 | } |
| 169 | |
| 170 | public stop(): Thenable<void> { |
| 171 | return super.stop().then(() => { |
| 172 | if (this._serverProcess) { |
| 173 | let toCheck = this._serverProcess; |
| 174 | this._serverProcess = undefined; |
| 175 | if (this._isDetached === void 0 || !this._isDetached) { |
| 176 | this.checkProcessDied(toCheck); |
| 177 | } |
| 178 | this._isDetached = undefined; |
| 179 | } |
| 180 | }); |
| 181 | } |
| 182 | |
| 183 | private checkProcessDied(childProcess: ChildProcess | undefined): void { |
| 184 | if (!childProcess) { |
no test coverage detected