(ms: number)
| 566 | } |
| 567 | |
| 568 | const scheduleKill = (ms: number) => { |
| 569 | if (timer) { |
| 570 | clearTimeout(timer); |
| 571 | } |
| 572 | timer = setTimeout(() => { |
| 573 | timedOut = true; |
| 574 | proc.kill("SIGKILL"); |
| 575 | cleanup(); |
| 576 | const error = "SSH probe timed out"; |
| 577 | this.markFailedByKey(key, error); |
| 578 | reject(new Error(error)); |
| 579 | }, ms); |
| 580 | }; |
| 581 | |
| 582 | // Wire askpass deadline extension, then start initial fast timeout. |
| 583 | extendDeadline = scheduleKill; |
nothing calls this directly
no test coverage detected