Skip to content

Commit 7487d99

Browse files
committed
Reorderiong
1 parent c2a56b4 commit 7487d99

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/internal/WebSocketProtocol.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,12 +147,12 @@ namespace SL {
147147
work(std::make_unique<asio::io_service::work>(io_service)) {
148148
Threads.resize(threadcount.value);
149149
for (auto& ctx : Threads) {
150-
ctx.Thread = std::move(std::thread([&]() {
151-
std::error_code ec;
152-
io_service.run(ec);
153-
}));
154150
inflateInit2(&ctx.inflationStream, -MAX_WBITS);
155151
ctx.inflationBuffer = std::make_unique<char[]>(LARGE_BUFFER_SIZE);
152+
ctx.Thread = std::thread([&]() {
153+
std::error_code ec;
154+
io_service.run(ec);
155+
});
156156
}
157157
}
158158
~WSContext() {

0 commit comments

Comments
 (0)