forked from premiere/premiere-libtorrent
handle serious errors in on_accept_connection handler
This commit is contained in:
parent
1884061418
commit
5ebd05b047
|
@ -2531,9 +2531,9 @@ namespace {
|
||||||
TORRENT_ASSERT((ssl == transport::ssl) == is_ssl(*c));
|
TORRENT_ASSERT((ssl == transport::ssl) == is_ssl(*c));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
listener->async_accept(*str
|
std::weak_ptr<tcp::acceptor> ls(listener);
|
||||||
, std::bind(&session_impl::on_accept_connection, this, c
|
listener->async_accept(*str, [this, c, ls, ssl] (error_code const& ec)
|
||||||
, std::weak_ptr<tcp::acceptor>(listener), _1, ssl));
|
{ return this->wrap(&session_impl::on_accept_connection, c, ls, ec, ssl); });
|
||||||
}
|
}
|
||||||
|
|
||||||
void session_impl::on_accept_connection(std::shared_ptr<socket_type> const& s
|
void session_impl::on_accept_connection(std::shared_ptr<socket_type> const& s
|
||||||
|
|
Loading…
Reference in New Issue