()
| 431 | } |
| 432 | stateTransition(monitor, STATE_MONITORING); |
| 433 | function done() { |
| 434 | if (!isInCloseState(monitor)) { |
| 435 | stateTransition(monitor, STATE_IDLE); |
| 436 | } |
| 437 | |
| 438 | callback(); |
| 439 | } |
| 440 | |
| 441 | checkServer(monitor, (err, hello) => { |
| 442 | if (err) { |
no test coverage detected