()
| 52 | this.all.set(worker.id, worker); |
| 53 | |
| 54 | const done = () => { |
| 55 | if (this.handle.getsockname) { |
| 56 | const out = {}; |
| 57 | this.handle.getsockname(out); |
| 58 | // TODO(bnoordhuis) Check err. |
| 59 | send(null, { sockname: out }, null); |
| 60 | } else { |
| 61 | send(null, null, null); // UNIX socket. |
| 62 | } |
| 63 | |
| 64 | this.handoff(worker); // In case there are connections pending. |
| 65 | }; |
| 66 | |
| 67 | if (this.server === null) |
| 68 | return done(); |
no test coverage detected
searching dependent graphs…