| 58 | } |
| 59 | |
| 60 | static std::shared_ptr<ApiScriptFrame> GetOrCreateScriptFrame(const String& session) { |
| 61 | std::unique_lock<std::mutex> lock(l_ApiScriptMutex); |
| 62 | auto& frame = l_ApiScriptFrames[session]; |
| 63 | |
| 64 | // If no session was found, create a new one |
| 65 | if (!frame) { |
| 66 | frame = std::make_shared<ApiScriptFrame>(); |
| 67 | } |
| 68 | |
| 69 | return frame; |
| 70 | } |
| 71 | |
| 72 | bool ConsoleHandler::HandleRequest( |
| 73 | const WaitGroup::Ptr&, |
no outgoing calls
no test coverage detected