MCPcopy Create free account
hub / github.com/MaaXYZ/MaaFramework / clear_controller_sink

Method clear_controller_sink

source/MaaAgentClient/Client/AgentClient.cpp:1525–1539  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1523}
1524
1525void AgentClient::clear_controller_sink()
1526{
1527 LogTrace;
1528
1529 if (reg_ctrl_sink_id_ != MaaInvalidId) {
1530 if (reg_ctrl_) {
1531 reg_ctrl_->remove_sink(reg_ctrl_sink_id_);
1532 }
1533 reg_ctrl_sink_id_ = MaaInvalidId;
1534 }
1535
1536 if (reg_ctrl_) {
1537 reg_ctrl_ = nullptr;
1538 }
1539}
1540
1541void AgentClient::clear_tasker_sink()
1542{

Callers

nothing calls this directly

Calls 1

remove_sinkMethod · 0.45

Tested by

no test coverage detected