()
| 193 | } |
| 194 | |
| 195 | done() { |
| 196 | debug(`enter done(), state: ${String(this.state)}, uuid: ${this.uuid}`); |
| 197 | this._checkState([CREATED, WAITING, EXITING, EXITED]); |
| 198 | |
| 199 | if (this.state == CREATED) { |
| 200 | this.state = EXITED; |
| 201 | } else if (this.state == WAITING) { |
| 202 | this.child.kill(); |
| 203 | this.state = EXITING; |
| 204 | } |
| 205 | this._checkState(); |
| 206 | debug(`exit done(), state: ${String(this.state)}, uuid: ${this.uuid}`); |
| 207 | } |
| 208 | |
| 209 | ensureChild() { |
| 210 | debug(`enter ensureChild(), state: ${String(this.state)}, uuid: ${this.uuid}`); |
no test coverage detected