Skip to content

Commit

Permalink
Update src/connection.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Ranieri Althoff <1993083+ranisalt@users.noreply.github.com>
  • Loading branch information
nekiro and ranisalt authored Oct 8, 2024
1 parent a1ae877 commit 2e5f2ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ void Connection::send(const OutputMessage_ptr& msg)
try {
boost::asio::post(socket.get_executor(),
[thisPtr = shared_from_this(), msg] { thisPtr->internalSend(msg); });
} catch (boost::system::system_error& e) {
} catch (const boost::system::system_error& e) {
std::cout << "[Network error - Connection::send] " << e.what() << std::endl;
messageQueue.clear();
close(FORCE_CLOSE);
Expand Down

0 comments on commit 2e5f2ae

Please sign in to comment.