Skip to content

Commit 208abd4

Browse files
committed
fix 19064
1 parent 7ea387e commit 208abd4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/llmq/dkgsessionhandler.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ void CDKGSessionHandler::StartThread()
152152
throw std::runtime_error("Tried to start an already started CDKGSessionHandler thread.");
153153
}
154154

155-
std::string threadName = strprintf("llmq-%d-%d", ToUnderlying(params.type), quorumIndex);
156-
phaseHandlerThread = std::thread(util::TraceThread, threadName.c_str(), [this] { PhaseHandlerThread(); });
155+
m_thread_name = strprintf("llmq-%d-%d", ToUnderlying(params.type), quorumIndex);
156+
phaseHandlerThread = std::thread(util::TraceThread, m_thread_name.c_str(), [this] { PhaseHandlerThread(); });
157157
}
158158

159159
void CDKGSessionHandler::StopThread()

src/llmq/dkgsessionhandler.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ class CDKGSessionHandler
127127

128128
std::unique_ptr<CDKGSession> curSession;
129129
std::thread phaseHandlerThread;
130+
std::string m_thread_name;
130131

131132
// Do not guard these, they protect their internals themselves
132133
CDKGPendingMessages pendingContributions;

0 commit comments

Comments
 (0)