(message)
| 60 | }); |
| 61 | } |
| 62 | failed(message) { |
| 63 | if (this.read()) |
| 64 | this.read(null); // clear unread data from current packet |
| 65 | |
| 66 | const host = this.#callback(SNTP.error, message); |
| 67 | if (host) { |
| 68 | Timer.schedule(this.#timer, 5000, 5000); |
| 69 | this.start(host); |
| 70 | } |
| 71 | else |
| 72 | this.close(); |
| 73 | } |
| 74 | write() { |
| 75 | if (!this.#address) |
| 76 | return; |
no test coverage detected