From f81c67e70e626c0f0634a1ac5912f53e6cc2f542 Mon Sep 17 00:00:00 2001 From: badaix Date: Fri, 1 May 2020 20:12:13 +0200 Subject: [PATCH] Fix crash in send --- client/client_connection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/client_connection.cpp b/client/client_connection.cpp index c55bdddb..e41ab2c1 100644 --- a/client/client_connection.cpp +++ b/client/client_connection.cpp @@ -133,7 +133,7 @@ void ClientConnection::disconnect() void ClientConnection::sendNext() { auto& message = messages_.front(); - boost::asio::streambuf streambuf; + static boost::asio::streambuf streambuf; std::ostream stream(&streambuf); tv t; message.msg->sent = t;