diff options
author | Roland Reichwein <mail@reichwein.it> | 2023-02-10 18:38:06 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2023-02-10 18:38:06 +0100 |
commit | cba42916126a1baed33a6f122a5301982993d344 (patch) | |
tree | a64218ab2c092d32d3e99e9ddc69743a2f485820 | |
parent | 7cbd8fd326339fc7dcc313ba5781534984c299c2 (diff) |
Suppress expected session close message
-rw-r--r-- | whiteboard.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/whiteboard.cpp b/whiteboard.cpp index 220d85e..6a71d3b 100644 --- a/whiteboard.cpp +++ b/whiteboard.cpp @@ -167,7 +167,8 @@ public: { boost::ignore_unused(bytes_transferred); if (ec) { - std::cerr << "Error on session read: " << ec.message() << std::endl; + if (ec != boost::beast::websocket::error::closed) + std::cerr << "Error on session read: " << ec.message() << std::endl; } else { do_write(); } |