We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2a56b4 commit 7487d99Copy full SHA for 7487d99
include/internal/WebSocketProtocol.h
@@ -147,12 +147,12 @@ namespace SL {
147
work(std::make_unique<asio::io_service::work>(io_service)) {
148
Threads.resize(threadcount.value);
149
for (auto& ctx : Threads) {
150
- ctx.Thread = std::move(std::thread([&]() {
151
- std::error_code ec;
152
- io_service.run(ec);
153
- }));
154
inflateInit2(&ctx.inflationStream, -MAX_WBITS);
155
ctx.inflationBuffer = std::make_unique<char[]>(LARGE_BUFFER_SIZE);
+ ctx.Thread = std::thread([&]() {
+ std::error_code ec;
+ io_service.run(ec);
+ });
156
}
157
158
~WSContext() {
0 commit comments