| 1199 | } |
| 1200 | |
| 1201 | static void destroy_peer_conn(struct io_conn *peer_conn, struct peer *peer) |
| 1202 | { |
| 1203 | assert(peer->to_peer == peer_conn); |
| 1204 | |
| 1205 | /* If subds need cleaning, this will do it */ |
| 1206 | if (!peer->draining) |
| 1207 | drain_peer(peer); |
| 1208 | |
| 1209 | peer->to_peer = NULL; |
| 1210 | |
| 1211 | /* Or if there were no subds, this will free the peer. */ |
| 1212 | maybe_free_peer(peer); |
| 1213 | } |
| 1214 | |
| 1215 | struct io_plan *multiplex_peer_setup(struct io_conn *peer_conn, |
| 1216 | struct peer *peer) |
nothing calls this directly
no test coverage detected