mirror of
https://github.com/CrowCpp/Crow.git
synced 2024-06-07 21:10:44 +00:00
further formatting
This commit is contained in:
parent
892cfb238b
commit
4128e5c27d
@ -106,7 +106,7 @@ namespace crow
|
|||||||
|
|
||||||
|
|
||||||
signals_.clear();
|
signals_.clear();
|
||||||
for (auto snum: handler_->signals())
|
for (auto snum : handler_->signals())
|
||||||
signals_.add(snum);
|
signals_.add(snum);
|
||||||
|
|
||||||
// Sec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==
|
// Sec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==
|
||||||
@ -118,12 +118,13 @@ namespace crow
|
|||||||
s.getDigestBytes(digest);
|
s.getDigestBytes(digest);
|
||||||
|
|
||||||
signals_.async_wait(
|
signals_.async_wait(
|
||||||
[&](const boost::system::error_code& e, int /*signal_number*/){
|
[&](const boost::system::error_code& e, int /*signal_number*/) {
|
||||||
if (!e){
|
if (!e)
|
||||||
CROW_LOG_INFO << "Quitting Websocket: " << this;
|
{
|
||||||
close("Server Application Terminated");
|
CROW_LOG_INFO << "Quitting Websocket: " << this;
|
||||||
}
|
close("Server Application Terminated");
|
||||||
});
|
}
|
||||||
|
});
|
||||||
start(crow::utility::base64encode((unsigned char*)digest, 20));
|
start(crow::utility::base64encode((unsigned char*)digest, 20));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user