()
| 52 | } |
| 53 | } |
| 54 | close() { |
| 55 | while (this.services.length) |
| 56 | this.remove(this.services[0]); |
| 57 | |
| 58 | while (this.monitors.length) |
| 59 | this.remove(this.monitors[0].service.substring(0, this.monitors[0].service.length - 6)); |
| 60 | |
| 61 | Timer.clear(this.probeTimer); |
| 62 | |
| 63 | super.close(); |
| 64 | } |
| 65 | add(service) { |
| 66 | if (!this.hostName) |
| 67 | throw new Error("no hostName"); |