Skip to content

Commit f12b921

Browse files
committed
Added a small fix for WT-11408 to re-allow self-deleting Wt::Http::Client
1 parent 1e4ab91 commit f12b921

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Wt/Http/Client.C

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,11 +1102,17 @@ void Client::handleRedirect(Http::Method method,
11021102
void Client::emitDone(AsioWrapper::error_code err, const Message& response)
11031103
{
11041104
#ifdef WT_THREADED
1105+
{
11051106
std::unique_lock<std::recursive_mutex> lock(implementationMutex_);
11061107
#endif
11071108

11081109
impl_.reset();
11091110
redirectCount_ = 0;
1111+
1112+
#ifdef WT_THREADED
1113+
}
1114+
#endif
1115+
11101116
done_.emit(err, response);
11111117
}
11121118

0 commit comments

Comments
 (0)