()
| 540 | } |
| 541 | |
| 542 | public async close() { |
| 543 | try { |
| 544 | return await this.instance.close(); |
| 545 | } catch (err) { |
| 546 | // Check if server is still running |
| 547 | if (err.code !== 'ERR_SERVER_NOT_RUNNING') { |
| 548 | throw err; |
| 549 | } |
| 550 | return; |
| 551 | } |
| 552 | } |
| 553 | |
| 554 | public initHttpServer() { |
| 555 | this.httpServer = this.instance.server; |