Skip to content

Commit

Permalink
fix bolt coredump (TuGraph-family#718)
Browse files Browse the repository at this point in the history
  • Loading branch information
ljcui authored Oct 28, 2024
1 parent 3126051 commit d642423
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/bolt_handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -285,9 +285,9 @@ std::function<void(bolt::BoltConnection &conn, bolt::BoltMsg msg,
}
session->state = SessionState::READY;
session->user = principal;
conn.SetContext(session);
session->fsm_thread = std::thread(BoltFSM, conn.shared_from_this());
session->fsm_thread.detach();
conn.SetContext(std::move(session));
bolt::PackStream ps;
ps.AppendSuccess(meta);
conn.Respond(std::move(ps.MutableBuffer()));
Expand Down

0 comments on commit d642423

Please sign in to comment.