summaryrefslogtreecommitdiffhomepage
path: root/whiteboard.cpp
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2023-02-10 18:38:06 +0100
committerRoland Reichwein <mail@reichwein.it>2023-02-10 18:38:06 +0100
commitcba42916126a1baed33a6f122a5301982993d344 (patch)
treea64218ab2c092d32d3e99e9ddc69743a2f485820 /whiteboard.cpp
parent7cbd8fd326339fc7dcc313ba5781534984c299c2 (diff)
Suppress expected session close message
Diffstat (limited to 'whiteboard.cpp')
-rw-r--r--whiteboard.cpp3
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();
}