Skip to content
This repository was archived by the owner on Jun 12, 2018. It is now read-only.

Commit 3f4c9f1

Browse files
committed
Merge branch 'ar90n-add_ptr_check'
2 parents 89eba06 + 073bf0f commit 3f4c9f1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

server_ws.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ namespace SimpleWeb {
7171

7272
void send_from_queue() {
7373
strand.post([this]() {
74+
if(!socket) {
75+
return;
76+
}
77+
7478
boost::asio::async_write(*socket, send_queue.begin()->header_stream->streambuf,
7579
strand.wrap([this](const boost::system::error_code& ec, size_t /*bytes_transferred*/) {
7680
if(!ec) {

0 commit comments

Comments
 (0)