MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / failed

Method failed

modules/network/sntp/sntp.js:62–73  ·  view source on GitHub ↗
(message)

Source from the content-addressed store, hash-verified

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;

Callers 4

constructorMethod · 0.95
startMethod · 0.95
callbackMethod · 0.95
onDisplayedMethod · 0.45

Calls 4

startMethod · 0.95
closeMethod · 0.95
scheduleMethod · 0.80
readMethod · 0.65

Tested by

no test coverage detected