From 4128e5c27d486e20cdc419f7c44d7a018ede16b6 Mon Sep 17 00:00:00 2001 From: The-EDev Date: Wed, 18 May 2022 12:40:11 +0300 Subject: [PATCH] further formatting --- include/crow/websocket.h | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/include/crow/websocket.h b/include/crow/websocket.h index 8d53c714e..22b083ba3 100644 --- a/include/crow/websocket.h +++ b/include/crow/websocket.h @@ -106,7 +106,7 @@ namespace crow signals_.clear(); - for (auto snum: handler_->signals()) + for (auto snum : handler_->signals()) signals_.add(snum); // Sec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ== @@ -118,12 +118,13 @@ namespace crow s.getDigestBytes(digest); signals_.async_wait( - [&](const boost::system::error_code& e, int /*signal_number*/){ - if (!e){ - CROW_LOG_INFO << "Quitting Websocket: " << this; - close("Server Application Terminated"); - } - }); + [&](const boost::system::error_code& e, int /*signal_number*/) { + if (!e) + { + CROW_LOG_INFO << "Quitting Websocket: " << this; + close("Server Application Terminated"); + } + }); start(crow::utility::base64encode((unsigned char*)digest, 20)); }