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

Method check_stop

source/MaaFramework/Controller/ControllerAgent.cpp:911–924  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

909}
910
911bool ControllerAgent::check_stop()
912{
913 if (!need_to_stop_) {
914 return true;
915 }
916
917 if (running()) {
918 LogError << "stopping, ignore new post";
919 return false;
920 }
921
922 need_to_stop_ = false;
923 return true;
924}
925
926bool ControllerAgent::run_action(typename AsyncRunner<Action>::Id id, Action action)
927{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected