Skip to content

Commit

Permalink
Added missed returns.
Browse files Browse the repository at this point in the history
  • Loading branch information
dchapyshev committed Nov 14, 2023
1 parent 1ea799b commit e1f91c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/base/net/tcp_server.cc
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,15 @@ void TcpServer::Impl::start(std::u16string_view listen_interface, uint16_t port,
{
LOG(LS_ERROR) << "acceptor_->bind failed: "
<< base::utf16FromLocal8Bit(error_code.message());
return;
}

acceptor_->listen(asio::ip::tcp::socket::max_listen_connections, error_code);
if (error_code)
{
LOG(LS_ERROR) << "acceptor_->listen failed: "
<< base::utf16FromLocal8Bit(error_code.message());
return;
}

doAccept();
Expand Down

0 comments on commit e1f91c4

Please sign in to comment.