* We are going to be shut down soon * * If we have both a left and right hook, then we probably want to extricate * ourselves and leave the two peers still linked to each other. Otherwise we * should just shut down as a normal node would. */
| 335 | * should just shut down as a normal node would. |
| 336 | */ |
| 337 | static int |
| 338 | ng_tee_close(node_p node) |
| 339 | { |
| 340 | const sc_p privdata = NG_NODE_PRIVATE(node); |
| 341 | |
| 342 | if (privdata->left.hook && privdata->right.hook) |
| 343 | ng_bypass(privdata->left.hook, privdata->right.hook); |
| 344 | |
| 345 | return (0); |
| 346 | } |
| 347 | |
| 348 | /* |
| 349 | * Shutdown processing |
nothing calls this directly
no test coverage detected