MCPcopy Create free account
hub / github.com/ElementsProject/lightning / destroy_client

Function destroy_client

hsmd/hsmd.c:192–197  ·  view source on GitHub ↗

~ This is the destructor on our client: we may call it manually, but * generally it's called because the io_conn associated with the client is * closed by the other end. */

Source from the content-addressed store, hash-verified

190 * generally it's called because the io_conn associated with the client is
191 * closed by the other end. */
192static void destroy_client(struct client *c)
193{
194 if (!uintmap_del(&clients, c->dbid))
195 status_failed(STATUS_FAIL_INTERNAL_ERROR,
196 "Failed to remove client dbid %"PRIu64, c->dbid);
197}
198
199static struct client *new_client(const tal_t *ctx,
200 const struct chainparams *chainparams,

Callers

nothing calls this directly

Calls 1

status_failedFunction · 0.50

Tested by

no test coverage detected