summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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();
}