Skip to content

Commit

Permalink
fix: add response for checking setup
Browse files Browse the repository at this point in the history
  • Loading branch information
neko-para committed Oct 18, 2023
1 parent cd4fe9f commit e6fd251
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions source/MaaRpc/implement/Utility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,12 @@ Status UtilityImpl::register_callback(ServerContext* context, const ::maarpc::Id

states_.add(id, state);

{
::maarpc::Callback cb;
cb.set_msg("Rpc.Inited");
state->writer->Write(cb);
}

while (true) {
using namespace std::chrono_literals;
if (state->finish.try_acquire_for(2s)) {
Expand Down

0 comments on commit e6fd251

Please sign in to comment.