MCPcopy Create free account
hub / github.com/DFHack/dfhack / detach_connection

Method detach_connection

library/PluginManager.cpp:673–681  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

671}
672
673void Plugin::detach_connection(RPCService *svc)
674{
675 int idx = linear_index(services, svc);
676
677 assert(svc->holder == this && idx >= 0);
678
679 vector_erase_at(services, idx);
680 access->lock_sub();
681}
682
683Plugin::plugin_state Plugin::getState() const
684{

Callers 1

~RPCServiceMethod · 0.80

Calls 3

vector_erase_atFunction · 0.85
lock_subMethod · 0.80
linear_indexFunction · 0.50

Tested by

no test coverage detected