(err)
| 4031 | |
| 4032 | // finished |
| 4033 | function done(err) { |
| 4034 | if (self.timedOut) return; |
| 4035 | if (finished) return multiple(err); |
| 4036 | self.clearTimeout(); |
| 4037 | self.duration = new Date - start; |
| 4038 | finished = true; |
| 4039 | fn(err); |
| 4040 | } |
| 4041 | |
| 4042 | // for .resetTimeout() |
| 4043 | this.callback = done; |
no test coverage detected